/* Gusi Studios
   Layout: a dark teal masthead band over a warm cream page, white cards, and
   real app screens in plain device frames. One accent per product.
   Type: a serif display against a humanist sans, both from the system stack,
   because the site's CSP admits no font host. */
:root {
  --ink:        #0E4749;   /* the studio teal, already used in the auth emails */
  --ink-deep:   #072E30;
  --ink-soft:   #16605F;
  --ground:     #F7F3E8;   /* warm cream, from the same emails */
  --surface:    #FFFFFF;
  --line:       #E4DFD1;
  --text:       #1B2231;
  --muted:      #6B7484;
  --budget:     #5B4EE0;   /* the indigo the Budget app actually uses */
  --portfolio:  #1F6F8B;   /* analytic blue, for the tracker */
  --on-ink:     #F4EFE2;
  --display: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0B3A3C; --ink-deep: #04201F; --ink-soft: #15514F;
    --ground: #10171A; --surface: #182125; --line: #27343A;
    --text: #ECEAE0; --muted: #9DA9AC;
    --budget: #9A92FF; --portfolio: #67B6D1; --on-ink: #EFEADC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #0B3A3C; --ink-deep: #04201F; --ink-soft: #15514F;
  --ground: #10171A; --surface: #182125; --line: #27343A;
  --text: #ECEAE0; --muted: #9DA9AC;
  --budget: #9A92FF; --portfolio: #67B6D1; --on-ink: #EFEADC;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.band > .wrap, .wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--budget); outline-offset: 3px; border-radius: 4px; }

/* ---------- masthead ---------- */
.masthead { background: var(--ink); color: var(--on-ink); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between; padding-block: 18px;
}
.wordmark { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.wordmark b { font-family: var(--display); font-size: 1.12rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.wordmark span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9FBDB8; }
.navlinks { display: flex; gap: 22px; font-size: 0.95rem; }
.navlinks a { text-decoration: none; color: #CFE3DE; padding-block: 4px; border-bottom: 1px solid transparent; }
.navlinks a:hover { color: #fff; border-bottom-color: #4E8F88; }
.navlinks a[aria-current="page"] { color: #fff; border-bottom-color: #4E8F88; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(174deg, var(--ink) 0%, var(--ink-deep) 100%); color: var(--on-ink); }
.hero .wrap { padding-block: clamp(48px, 7vw, 86px); }
.eyebrow { font-size: 0.73rem; letter-spacing: 0.17em; text-transform: uppercase; color: #8FB6B0; margin-bottom: 18px; }
.hero p.lede { margin-top: 18px; max-width: 54ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); color: #D6E5E1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-light { background: var(--on-ink); color: var(--ink-deep); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: #4E8F88; color: var(--on-ink); }
.btn-ghost:hover { border-color: #87BDB5; }

/* ---------- sections ---------- */
.band { background: var(--ground); }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section { padding-block: clamp(44px, 6vw, 76px); }
.section-head { max-width: 58ch; display: flex; flex-direction: column; gap: 12px; }
.section-head .kicker { font-size: 0.73rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted); }
.section-head p { color: var(--muted); }

/* ---------- product cards ---------- */
.products { display: grid; gap: 22px; margin-top: 34px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.band.alt .card { background: var(--ground); }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.card h3 { font-size: 1.3rem; }
.card .role { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; display: grid; gap: 6px; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.card.budget .more { color: var(--budget); }
.card.portfolio .more { color: var(--portfolio); }
.card.budget { border-top: 3px solid var(--budget); }
.card.portfolio { border-top: 3px solid var(--portfolio); }

/* ---------- plan cards ---------- */
.card .price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.card .price b { font-family: var(--display); font-size: 2.1rem; line-height: 1; letter-spacing: -0.01em; }
.card .price span { color: var(--muted); font-size: 0.95rem; }
.card .year { color: var(--muted); font-size: 0.9rem; margin-top: -8px; font-variant-numeric: tabular-nums; }
.card .adds { font-weight: 600; font-size: 0.95rem; }
.plan-note { margin-top: 26px; color: var(--muted); font-size: 0.92rem; max-width: 64ch; }

/* ---------- screens ---------- */
.screens { display: grid; gap: 26px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.screen { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.frame {
  border: 1px solid var(--line); border-radius: 20px; padding: 7px;
  background: var(--surface); box-shadow: 0 10px 28px rgba(7, 46, 48, 0.09);
}
.frame img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 13px; }
.screen figcaption { font-size: 0.9rem; color: var(--muted); }
.screen figcaption b { color: var(--text); font-weight: 600; }

/* ---------- feature list ---------- */
.features { display: grid; gap: 18px 30px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.feature b { font-size: 0.98rem; }
.feature span { color: var(--muted); font-size: 0.93rem; }

/* ---------- notes, prose ---------- */
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 16px; margin-top: 20px; color: var(--muted); }
.prose strong { color: var(--text); }
.note {
  margin-top: 28px; padding: 18px 20px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--ink-soft); font-size: 0.95rem; color: var(--muted);
}
.band.alt .note { background: var(--ground); }
.note b { color: var(--text); }
.status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  padding: 10px 16px; border-radius: 999px; border: 1px dashed #4E8F88;
  font-size: 0.9rem; color: #D6E5E1;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7FB6AE; flex: none; }

/* ---------- store links ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.store-note { font-size: 0.88rem; color: #9FBDB8; }

/* ---------- contact ---------- */
.addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem; color: var(--text); user-select: all;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 13px; display: inline-block; margin-top: 4px;
}
.band.alt .addr { background: var(--ground); }

/* ---------- legal row + footer ---------- */
.legal { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 0.93rem; }
.legal a { color: var(--muted); }
.sitefoot { background: var(--ink-deep); color: #A9C6C1; font-size: 0.9rem; }
.sitefoot .wrap { padding-block: 30px; display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: space-between; }
.sitefoot a { color: #CFE3DE; text-decoration: none; }
.sitefoot a:hover { text-decoration: underline; }
.footlinks { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* ---------- mobile: features before screenshots ---------- */
/* On a phone the list of what the app does reads better than a column of
   shrunken screenshots, so the two sections swap. Desktop keeps the order
   it has: .flip is only a flex container inside this query. */
@media (max-width: 760px) {
  .flip { display: flex; flex-direction: column; }
  .flip > .flip-screens { order: 2; }
  .flip > .flip-features { order: 1; }
  /* the bands have to swap with them, or two of the same tone end up adjacent */
  .flip > .flip-screens.band.alt { background: var(--ground); border-block: 0; }
  .flip > .flip-features.band { background: var(--surface); border-block: 1px solid var(--line); }
  .flip > .flip-features.band .note { background: var(--ground); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
