/* home-sections-days.css: the Home card and visit prep replicas inside #days, their motion, and the
   breakpoints for every section in home-sections.css (landing-v3). The replicas keep the app's own
   small caps (.cap-d). They take over from production's Home card and visit prep styles. */

/* The Home card */
#days .arc { min-height: 432px; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; color: var(--onDark); background: linear-gradient(170deg, color-mix(in srgb, var(--hero-top) 80%, var(--primary)) 0%, color-mix(in srgb, var(--hero-top) 55%, var(--hero-bottom)) 55%, var(--hero-bottom) 100%); box-shadow: 0 34px 60px -32px color-mix(in srgb, var(--ink-deep) 60%, transparent); }
#days .arc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#days .cap-d { font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--onDarkDim); }
#days .arc-now { margin-top: 2px; }
#days .arc-with { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mintL); }
#days .arc-t { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
#days .arc-b { font-size: 15px; line-height: 1.5; color: var(--onDarkDim); }
/* The week strip, as the app's SymptomForecast draws it (production's landing-v2 port): a label
   column, seven cells a row, day letters, today outlined in ember. The fill ramps ember toward the
   provider clay (--error) and gains alpha with the level, as the app's intensityColor() does. */
#days .arc-strip { display: grid; grid-template-columns: 74px repeat(7, minmax(0, 1fr)); column-gap: 5px; row-gap: 10px; align-items: center; padding: 4px 0 2px; }
#days .arc-strip .lab, #days .arc-strip .day { font-size: 10.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: color-mix(in srgb, var(--sand) 60%, transparent); }
#days .arc-strip .day { text-align: center; margin-top: 2px; }
#days .arc-strip .day.today { color: var(--ember); font-weight: 600; }
#days .arc-strip i { display: block; height: 19px; border-radius: 3px; background: color-mix(in srgb, var(--sand) 10%, transparent); transform-origin: 50% 100%; }
#days .arc-strip i.l1 { background: color-mix(in srgb, var(--ember) 38%, transparent); }
#days .arc-strip i.l2 { background: color-mix(in srgb, color-mix(in srgb, var(--ember) 75%, var(--error)) 56%, transparent); }
#days .arc-strip i.l3 { background: color-mix(in srgb, color-mix(in srgb, var(--ember) 50%, var(--error)) 74%, transparent); }
#days .arc-strip i.now { border: 1px solid var(--ember); }
#days .arc-strip i:nth-of-type(7n+2) { --d: 1; } #days .arc-strip i:nth-of-type(7n+3) { --d: 2; } #days .arc-strip i:nth-of-type(7n+4) { --d: 3; }
#days .arc-strip i:nth-of-type(7n+5) { --d: 4; } #days .arc-strip i:nth-of-type(7n+6) { --d: 5; } #days .arc-strip i:nth-of-type(7n) { --d: 6; }
#days .arc-ck { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--onDark); }
#days .arc-ck .ic { color: var(--mint); }
#days .arc-ph { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
#days .arc-ph b { font-size: 19px; font-weight: 750; }
#days .wchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: var(--pill); background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mintL); font-size: 12.5px; font-weight: 650; }
#days .arc-st { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--glass6); border: 1px solid var(--glass8); font-size: 14.5px; line-height: 1.35; }
#days .arc-st b { color: var(--ember); font-weight: 800; }
#days .arc-st span { flex: 1; }
#days .arc-st .ic { color: var(--onDarkDim); }
#days .lad { display: flex; flex-direction: column; gap: 2px; }
#days .lad li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 38px; font-size: 14.5px; color: var(--onDarkDim); }
#days .lad li + li::before { content: ""; position: absolute; left: 10.5px; top: -10px; width: 1px; height: 14px; background: color-mix(in srgb, var(--white) 14%, transparent); }
#days .ld-i { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; }
#days .lad .done .ld-i { color: var(--mint); }
#days .lad .cur { color: var(--ember); font-weight: 700; }
#days .lad .cur .ld-i::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
#days .lad .nx { opacity: 0.6; }
#days .lad .nx .ld-i::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed var(--onDarkDim); }
#days .lad .nx span { text-decoration: underline dashed color-mix(in srgb, var(--onDarkDim) 55%, transparent); text-underline-offset: 4px; }
#days .arc-q { margin-top: 2px; font-size: 14.5px; color: var(--onDark); }
#days .arc-btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: color-mix(in srgb, var(--white) 7%, transparent); border: 1px solid color-mix(in srgb, var(--white) 10%, transparent); font-size: 15px; font-weight: 650; color: var(--onDark); }
#days .arc-btn .ic { color: var(--mint); }
#days .arc-lk { padding: 4px 0; text-align: center; font-size: 14px; font-weight: 650; color: var(--mint); }

/* Visit prep */
#days .prep { min-height: 432px; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 34px 60px -36px color-mix(in srgb, var(--ink-deep) 45%, transparent); }
#days .prep-hd { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; color: var(--onDark); background: linear-gradient(170deg, color-mix(in srgb, var(--hero-top) 80%, var(--primary)), var(--hero-bottom)); }
#days .prep-t { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
#days .prep-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--pill); background: var(--glass8); font-size: 12.5px; font-weight: 650; color: var(--onDark); }
#days .prep-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
#days .prep-b { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
#days .prep-rows { padding: 2px 14px; border-radius: 14px; background: var(--curaSurface); }
#days .prep-r { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--cura-border); font-size: 14px; color: var(--body); }
#days .prep-r:last-child { border-bottom: 0; }
#days .prep-r b { font-weight: 650; color: var(--ink); text-align: right; }
#days .prep-qh { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
#days .prep-qh .ic { color: var(--primary); }
#days .prep-q { display: flex; gap: 12px; padding: 14px; border-radius: 14px; }
#days .prep-q.y { background: var(--emberSoft); }
#days .prep-q.m { background: var(--chat); }
#days .prep-q > b { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font-size: 13px; font-weight: 800; color: var(--ink); }
#days .pq-t { margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
#days .pq-p { font-size: 14px; line-height: 1.45; color: var(--body); }

/* #days motion: dots pop, ticks land, plan steps and prep rows rise, the current step pings twice. */
/* The week's days fill in left to right when the card starts, as production's strip did. */
.hp-motion #days .dc:not(.hp-done):not(.hs-in) .arc-strip i { opacity: 0; transform: scaleY(0.4); }
.hp-motion #days .dc.hs-in:not(.hp-done) .arc-strip i { animation: dayIn 450ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(300ms + var(--d, 0) * 90ms) both; }
@keyframes dayIn { from { opacity: 0; transform: scaleY(0.4); } }
/* The two app pictures tip back a little and straighten toward the visitor as they scroll into view,
   as the goals' pictures do (home-goal.css). The card's own film pauses its insides when it is mostly
   off screen; the tilt follows the scroll, so it is kept running. */
@supports (animation-timeline: view()) {
  .hp-motion #days .dc-vis { perspective: 1800px; }
  .hp-motion #days .dc-vis > :is(.arc, .prep) { transform-origin: 50% 100%; animation: daysTilt linear both; animation-timeline: view(); animation-range: cover 0% cover 50vh; animation-play-state: running !important; }
}
@keyframes daysTilt { from { rotate: x 7deg; scale: 0.96; } }
.hp-motion #days .dc.hs-in:not(.hp-done) .lad .done .ic { animation: ckIn 460ms cubic-bezier(0.2, 0.9, 0.3, 1.4) var(--dl, 0ms) both; }
.hp-motion #days .dc.hs-in:not(.hp-done) :is(.arc-st, .prep-r, .prep-q, .prep-qh) { animation: riseIn 620ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--dl, 0ms) both; }
.hp-motion #days .dc.hs-in:not(.hp-done) .lad .cur .ld-i::before { animation: hsPing 1900ms ease-out 900ms 2; }
@keyframes hsPing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ember) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--ember) 0%, transparent); } }

/* Breakpoints */
/* Up to 1100 px (landscape tablets too) the moments and the team run one a row, words beside the
   picture: three across, their columns were too narrow and each card grew taller than the screen. */
@media (max-width: 1100px) {
  #days .days-grid, #team .team-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
  #days .days-grid { row-gap: 64px; }
  #days .dc { grid-row: auto; grid-template-rows: 1fr auto auto auto 1fr; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); column-gap: 44px; }
  #days .dc-k { grid-area: 2 / 1; }
  #days .dc h3 { grid-area: 3 / 1; }
  #days .dc-p { grid-area: 4 / 1; }
  #days .dc-vis { grid-area: 1 / 2 / 6 / 3; margin-top: 0; }
  #days .dc:nth-child(2) { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  #days .dc:nth-child(2) :is(.dc-k, h3, .dc-p) { grid-column: 2; }
  #days .dc:nth-child(2) .dc-vis { grid-column: 1; }
  #team .team-grid { gap: 18px; }
  #team .tm-c { flex-direction: row; }
  #team .tm-ph { flex: 0 0 236px; aspect-ratio: auto; min-height: 260px; }
  #team .tm-b { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 24px 28px; }
}
@media (max-width: 1020px) {
  #meet .mt { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
}
/* The effort cards run one a row from a portrait tablet down: two across, Cura's half got too narrow
   for its chips. */
@media (max-width: 900px) {
  #tried .fx-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
}
@media (max-width: 720px) {
  #days .days-grid { row-gap: 52px; max-width: 460px; }
  #days .dc { display: flex; flex-direction: column; gap: 12px; }
  #days .dc-vis { margin-top: 8px; }
  #team .team-grid { max-width: 460px; }
  /* On a phone each person is a profile card: the whole portrait (400 x 460, so no chin or neck is
     cut) beside the name and role, the bio and tag under both. A full-width portrait made every
     card taller than the screen. */
  #team .tm-c { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; padding: 18px 18px 20px; }
  #team .tm-ph { grid-row: 1 / span 2; aspect-ratio: 400 / 460; min-height: 0; border-radius: 16px; }
  #team .tm-b { display: contents; }
  #team .tm-b h3 { grid-column: 2; align-self: end; }
  #team .tm-r { grid-column: 2; align-self: start; margin-top: 6px; }
  #team .tm-p { grid-column: 1 / -1; margin-top: 16px; }
  #team .tm-tag { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
}
@media (max-width: 640px) {
  #faq .fq summary { font-size: 16.5px; padding: 14px 18px; }
  #faq .fq-a { padding: 0 18px 20px; font-size: 16px; }
}
@media (max-width: 560px) {
  #meet .mt { border-radius: 24px; }
  #meet .mt-head { gap: 18px; padding: 34px 22px 30px; }
  #meet .mt-steps { padding: 6px 20px; }
  #meet .mt-steps li { grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 22px 0; }
  #meet .mt-steps li > div { display: contents; }
  #meet .mt-steps li p { grid-column: 1 / -1; }
  #meet .mt-n { width: 38px; height: 38px; font-size: 16px; }
  #meet .mt-steps h3 { margin-top: 0; font-size: 19.5px; }
  #meet .mt-steps p { font-size: 16px; line-height: 1.6; }
  /* On a phone the effort cards tighten so each stays short; the words keep their size. */
  #tried .fx-grid { gap: 12px; }
  #tried .fx { gap: 14px; padding: 18px; }
  #tried .fx-p { grid-template-columns: 40px minmax(0, 1fr); }
  #tried .tc-ic { width: 40px; height: 40px; border-radius: 12px; }
  #tried .fx-a { padding: 14px 15px 16px; }
  /* Each moment fits on one phone screen: the app pictures draw at 90 percent, so fewer lines
     wrap and they read less crowded, and their spacing tightens. The words above keep their size. */
  #days .dc { gap: 10px; }
  #days .dc-vis { margin-top: 4px; zoom: 0.9; }
  #days .arc, #days .prep { min-height: 0; }
  #days .arc { gap: 10px; padding: 16px; }
  #days .lad li { min-height: 32px; }
  #days .prep-hd { padding: 16px 16px 18px; }
  #days .prep-b { gap: 10px; padding: 12px; }
  #days .prep-r { padding: 9px 0; }
  #days .prep-q { padding: 11px 12px; }
  /* Dr. Kahal's note reads as a testimonial on a phone: the quote first, in type that scales with
     the screen (18 to 20 px), then a small portrait beside her name, with her role on its own line.
     The band keeps less space above and below than a full section. */
  .qt-sec { padding: 48px 0 52px; }
  .qt-in { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 0 12px; }
  .qt-tx { display: contents; }
  .qt-mk { grid-area: 1 / 1 / 2 / -1; width: 28px; height: 22px; }
  .qt-q { grid-area: 2 / 1 / 3 / -1; margin: 12px 0 18px; font-size: clamp(18px, 4.7vw, 20px); line-height: 1.4; }
  .qt-ph { grid-area: 3 / 1; width: 52px; height: 60px; border-radius: 14px; box-shadow: none; }
  .qt-by { grid-area: 3 / 2; font-size: 14px; line-height: 1.4; }
  .qt-sep { display: none; }
  .qt-role { display: block; }
  /* The closing card tightens so it fits on one screen. */
  #get-app .fin-c { gap: 14px; padding: 32px 20px 30px; }
  #get-app .fin-av { width: 56px; height: 56px; }
}
/* Narrow phones are short ones too (360 x 640, 375 x 667): the pictures draw at 85 percent. */
@media (max-width: 380px) {
  #days .dc-vis { zoom: 0.85; }
  /* The two store badges stay on one line. */
  #get-app .fin-c { padding-left: 12px; padding-right: 12px; }
}
