/* Tide marketing site — shared tokens and base styles.
   Brand tokens are lifted from mobile/src/theme.js so the site and the app match. */

:root {
  --ink: #0d2b33;
  --aqua: #0f8ca3;
  --aqua-deep: #0b7a90;
  --aqua-bright: #3fb7cf;
  --aqua-mid: #16a9c4;
  --muted: #5c8790;
  --faint: #8aa9b0;
  --body: #38636d;

  --bg: #f4fbfc;
  --bg-alt: #e7f5f8;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --border: rgba(13, 43, 51, 0.1);
  --border-soft: rgba(13, 43, 51, 0.07);
  --shadow-card: 0 6px 18px rgba(8, 72, 88, 0.08);
  --shadow-lift: 0 14px 34px rgba(8, 72, 88, 0.14);

  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf6f8;
    --muted: #9fc2c9;
    --faint: #6f9199;
    --body: #b9d9de;

    --bg: #08181c;
    --bg-alt: #0c2127;
    --surface: #0f2830;
    --surface-soft: rgba(15, 40, 48, 0.72);
    --border: rgba(234, 246, 248, 0.12);
    --border-soft: rgba(234, 246, 248, 0.07);
    --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 46%, var(--bg) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navlinks a {
  text-decoration: none;
  color: var(--body);
  font-size: 14.5px;
  font-weight: 600;
}
.navlinks a:hover { color: var(--aqua); }
.navlinks .cta {
  background: linear-gradient(180deg, var(--aqua-mid), var(--aqua-deep));
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(11, 122, 144, 0.3);
}
.navlinks .cta:hover { color: #fff; opacity: 0.94; }
.navlinks .only-desktop { display: flex; align-items: center; gap: 28px; }

@media (max-width: 640px) {
  .navlinks .only-desktop > a:not(.cta) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(180deg, var(--aqua-mid), var(--aqua-deep));
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { opacity: 0.94; }
.btn-ghost {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--aqua); }

/* Sections */
section { padding: 88px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--aqua);
  margin: 0 0 14px;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}

/* Hero */
.hero { padding-top: 64px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
}
.hero .sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 42ch;
}
.hero .actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-mock { margin: 0 auto; }
}

/* Phone mockup, drawn in CSS/SVG — matches the app's dial + gradients */
.phone-mock {
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: #0d2b33;
  padding: 12px;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.phone-mock .screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, #f4fbfc 0%, #e7f5f8 46%, #dcf0f4 100%);
  overflow: hidden;
  position: relative;
  padding: 30px 18px 0;
}
.phone-mock .status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #0d2b33;
  padding: 0 4px;
}
.phone-mock .greet {
  margin-top: 22px;
  font-size: 12px;
  color: #6c959d;
  font-weight: 600;
}
.phone-mock .title {
  font-size: 20px;
  font-weight: 700;
  color: #0d2b33;
  margin-top: 2px;
}
.phone-mock .dial-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.phone-mock .dial {
  width: 176px;
  height: 176px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 38%, #eef9fb 0%, #eef9fb 60%, #d6ecf1 100%);
  box-shadow: 0 14px 34px rgba(8, 72, 88, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.phone-mock .dial::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: conic-gradient(from -90deg, #0f8ca3 0deg 225deg, rgba(214,236,241,.6) 225deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
.phone-mock .dial-fill {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  height: 58%;
  border-radius: 999px 999px 40px 40px;
  background: linear-gradient(180deg, #3fb7cf, #0b7a90);
  -webkit-mask: radial-gradient(circle, #000 100%, transparent 100%);
  mask: radial-gradient(circle, #000 100%, transparent 100%);
  overflow: hidden;
}
.phone-mock .dial-count {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #0d2b33;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.55);
}
.phone-mock .dial-count b { font-size: 30px; display: block; }
.phone-mock .dial-count span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(13, 43, 51, 0.55);
}
.phone-mock .chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}
.phone-mock .chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255,255,255,.75);
  color: #3c6771;
  border: 0.5px solid rgba(13,43,51,.1);
}
.phone-mock .chip.active {
  background: linear-gradient(180deg, #16a9c4, #0b7a90);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13,43,51,.2);
}
.phone-mock .tabbar {
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
  height: 58px;
  border-radius: 22px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 28px rgba(8,72,88,.16);
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.phone-mock .tabdot {
  width: 8px; height: 8px; border-radius: 999px; background: #9db9bf;
}
.phone-mock .tabdot.on { background: #0f8ca3; width: 22px; border-radius: 999px; }

/* Feature grid */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
@media (max-width: 920px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card .glyph {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--aqua-bright), var(--aqua-deep));
  margin-bottom: 16px;
}
.card h3 { font-size: 16.5px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

/* Privacy callout */
.callout {
  border-radius: 28px;
  padding: 56px;
  background: linear-gradient(168deg, #123742, #0b7a90);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.callout h2 { font-size: clamp(26px, 3.4vw, 34px); }
.callout p { color: rgba(255,255,255,.82); margin-top: 14px; font-size: 15.5px; }
.callout .list { margin-top: 22px; display: grid; gap: 12px; }
.callout .list div {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: rgba(255,255,255,.92);
}
.callout .check {
  flex: none; width: 20px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
@media (max-width: 820px) { .callout { grid-template-columns: 1fr; padding: 36px; } }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal .updated { color: var(--faint); font-size: 13.5px; margin-top: 10px; }
.legal .lede { margin-top: 20px; font-size: 16px; }
.legal h2 {
  font-size: 19px;
  margin-top: 44px;
  padding-top: 4px;
}
.legal h2 span { color: var(--aqua); font-family: ui-monospace, monospace; margin-right: 8px; }
.legal p, .legal li { color: var(--body); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal a.link { color: var(--aqua); font-weight: 600; text-decoration: underline; }
.legal .box {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 56px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .flinks {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
footer .flinks a { text-decoration: none; color: var(--muted); }
footer .flinks a:hover { color: var(--aqua); }
footer .copy { color: var(--faint); font-size: 13.5px; }
