/* HQ-176: dailyascent.app's own styles on top of the shared switchbacklabs.dev ones (base/app/pages.css on the home page,
   legal/subpage.css on the others). This folder belongs to the mini site; scripts/build.mjs never overwrites it. */

/* ---------- links that open in a new tab (Scott, Dec 5, #37: Privacy and Support live on switchbacklabs.dev) ----------
   Visible ↗ like switchbacklabs.dev's own new-tab links ("Open TimeFit ↗"), plus hidden text for screen readers.
   .sr-only is also in base.css; repeated here because legal.css pages (features, 404) don't load base.css. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.nt{font-size:.85em;margin-left:1px}

/* ---------- header brand: the Daily Ascent badge + wordmark instead of the Switchback Labs lockup ----------
   The "header" prefix outranks the shared "body>header .brand img" (height:54px) rule on the subpages. */
header .brand.da-brand{display:inline-flex;align-items:center;gap:12px;line-height:1;color:#fff;text-decoration:none}
header .brand.da-brand:hover{text-decoration:none}
header .brand.da-brand img{width:48px;height:48px}
header .brand.da-brand .wm{font-family:var(--display);font-size:15px;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
header .brand.da-brand .wm span{color:var(--orange)}
@media (max-width:720px){
  header .brand.da-brand img{width:40px;height:40px}
  header .brand.da-brand .wm{font-size:13px;letter-spacing:.12em}
}
/* legal.css hides the 2nd nav link on phones (it's "Apps" on switchbacklabs.dev); here it's Features, which stays. */
@media (max-width:700px){
  header:not(.site-header) .navlinks a:nth-child(2){display:inline-flex}
}
/* Subpages keep their nav inline (no menu button): the wordmark, then "Home" (the badge links home), make room. */
@media (max-width:520px){
  header:not(.site-header) .brand.da-brand .wm{display:none}
}
@media (max-width:400px){
  header:not(.site-header) .navlinks a:first-child{display:none}
}

/* ---------- home: hero phone (desktop only; a 1x1 <source> keeps phones from downloading it) ---------- */
.hero-inner{position:relative}
.da-hero-shot{position:absolute;right:0;top:clamp(110px,14vh,160px);width:280px;display:block}
.da-hero-shot img{width:100%;height:auto;display:block;border-radius:30px;border:1px solid var(--line);box-shadow:0 30px 60px rgba(0,0,0,.7)}
@media (max-width:1100px){.da-hero-shot{width:240px}}
@media (max-width:980px){.da-hero-shot{display:none}}

/* ---------- home: feature cameos in the climb's camp cards (screenshot + words) ---------- */
.camp .card.da-cameo picture{display:block}
.camp .card.da-cameo{grid-template-columns:150px 1fr;align-items:center}
.da-cameo-shot{width:150px;height:auto;border-radius:16px;border:1px solid var(--line);box-shadow:0 14px 30px rgba(0,0,0,.55);display:block}
.camp .card.da-cameo h3{font-size:26px}
@media (max-width:980px){.camp .card.da-cameo{grid-template-columns:120px 1fr}.da-cameo-shot{width:120px}}
@media (max-width:760px){
  .camp .card.da-cameo{grid-template-columns:1fr}
  .da-cameo-shot{width:min(170px,55%)}
}

/* ---------- home: "also in the pack" tiles are links ---------- */
.da-more{padding:70px 0 10px}
.da-more .section-head p a{color:var(--orange)}
a.da-tile{display:block;color:inherit;text-decoration:none;transition:border-color .25s,transform .25s}
a.da-tile:hover{border-color:var(--orange);transform:translateY(-3px)}
.da-tile h3{font-size:20px;line-height:1.2;margin:4px 0 8px;color:#fff}
.da-tile p{color:var(--satin);font-size:15px;line-height:1.5;margin:0}

/* ---------- features page ---------- */
.da-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}
.da-jump a{font-size:13px;color:var(--satin);border:1px solid var(--line);border-radius:999px;padding:7px 12px;text-decoration:none}
.da-jump a:hover{border-color:var(--orange);color:#fff;text-decoration:none}
.card.da-feature{display:grid;grid-template-columns:220px 1fr;gap:34px;align-items:start;margin-top:22px;scroll-margin-top:20px}
.card.da-feature.da-feature-text{grid-template-columns:1fr}
.card.da-feature h2{margin-top:10px}
.card.da-feature .eyebrow{font-size:11px}
.da-shot{margin:0}
.da-shot picture{display:block}
/* Two screens side by side (the voice describe -> review flow) */
.card.da-feature.da-feature-pair{grid-template-columns:400px 1fr}
.da-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-content:start}
.da-pair figcaption{grid-column:1/-1;color:var(--muted);font-size:12.5px;text-align:center}
.da-shot img{width:100%;height:auto;display:block;border-radius:18px;border:1px solid var(--line);box-shadow:0 14px 30px rgba(0,0,0,.55)}
/* A frame waiting for a real screenshot (data-shot-todo). check.mjs lists these; --release fails while any remain. */
.da-shot-todo>div{aspect-ratio:271/590;border:1px dashed #555;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px;color:var(--grey);font:600 12px/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase;background:repeating-linear-gradient(135deg,#0d0d0d 0 10px,#111 10px 20px)}
.da-shot-todo small{display:block;margin-top:6px;text-transform:none;letter-spacing:0;font:500 12px/1.4 var(--sans);color:var(--muted)}
.da-fine{color:var(--muted);font-size:12.5px;margin:30px 0 0;text-align:center}
@media (max-width:760px){
  .card.da-feature{grid-template-columns:1fr;gap:20px}
  .da-shot{max-width:170px}
  .card.da-feature.da-feature-pair{grid-template-columns:1fr}
  .da-shot.da-pair{max-width:360px}
}
