/* ==========================================================================
   AriLing To Do — shared stylesheet (/todo, /todo/privacy)
   No framework, no build step. Plain CSS, mobile-first.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  /* -- brand ink & paper -- */
  --ink:        #191A3B;
  --ink-soft:   #4C4E76;
  --paper:      #F7F7FC;
  --paper-dim:  #EEEFF9;
  --line:       #DFE1F0;
  --white:      #FFFFFF;

  /* -- live accent, swapped by the theme switcher (mirrors the app's own
        "Make it yours" screen). Defaults to AriLing indigo. -- */
  --accent:      #2B3AC7;
  --accent-rgb:  43, 58, 199;
  --accent-deep: #1C2790;
  --accent-soft: #E7E9FB;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-card: 0 24px 48px -24px rgba(25, 26, 59, .28);
  --shadow-soft: 0 12px 28px -16px rgba(25, 26, 59, .18);

  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --wrap: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: var(--accent); }
img{ max-width: 100%; display: block; }

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

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------------------------------------------- */
/* Skip link                                                       */
/* -------------------------------------------------------------- */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius-s);
  z-index: 999;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* -------------------------------------------------------------- */
/* Nav                                                             */
/* -------------------------------------------------------------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,247,252, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark{
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  display: grid; place-items: center;
  flex: none;
  box-shadow: 0 2px 6px rgba(25, 26, 59, .18);
}
.brand-mark img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.brand small{
  display:block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .03em;
}

.nav-links{
  display: none;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover{ color: var(--accent); }

.nav-cta{ display: flex; align-items: center; gap: 14px; }

.lang-switch{
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch a, .lang-switch span{
  padding: 5px 9px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  line-height: 1;
}
.lang-switch a:hover{ color: var(--accent); }
.lang-switch span[aria-current="page"]{
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(25,26,59,.15);
}

@media (min-width: 860px){
  .nav-links{ display: flex; }
}

/* -------------------------------------------------------------- */
/* Buttons                                                          */
/* -------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), .55);
}
.btn-primary:hover{ box-shadow: 0 18px 34px -12px rgba(var(--accent-rgb), .65); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn-sm{ padding: 10px 18px; font-size: 14px; }

/* -------------------------------------------------------------- */
/* Eyebrow / section labels                                        */
/* -------------------------------------------------------------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before{
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* -------------------------------------------------------------- */
/* Hero                                                             */
/* -------------------------------------------------------------- */
.hero{
  position: relative;
  overflow: clip;
  padding: 64px 0 40px;
}
.hero-blob{
  position: absolute;
  width: 900px; height: 900px;
  right: -320px; top: -420px;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), 0));
  border-radius: 50%;
  pointer-events: none;
  transition: background .3s ease;
}
.hero .wrap{
  display: grid;
  gap: 40px;
  position: relative;
}
.hero h1{
  font-size: clamp(34px, 5.4vw, 54px);
  max-width: 14ch;
}
.hero-sub{
  font-size: 18px;
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-meta{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}
.stars{ color: #F5A524; letter-spacing: 2px; font-size: 15px; }

.hero-art{
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art img{
  width: min(100%, 320px);
  border-radius: 34px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px){
  .hero{ padding: 96px 0 70px; }
  .hero .wrap{ grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero-art{ justify-content: flex-end; }
  .hero-art img{ width: min(100%, 360px); }
}

/* -------------------------------------------------------------- */
/* Feature sections (zig-zag)                                      */
/* -------------------------------------------------------------- */
.feature{
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.feature.on-tint{ background: var(--paper-dim); }
.feature .wrap{
  display: grid;
  gap: 40px;
  align-items: center;
}
.feature h2{ font-size: clamp(26px, 3.6vw, 36px); max-width: 16ch; }
.feature p.lead{ font-size: 17px; max-width: 44ch; }

.feature-list{
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}
.feature-list .ico{
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  transition: background .25s ease, color .25s ease;
}
.feature-list .ico svg{ width: 16px; height: 16px; }

.feature-media{ display: flex; justify-content: center; }
.feature-media img{
  width: min(100%, 300px);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px){
  .feature .wrap{ grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.reverse .wrap{ direction: rtl; }
  .feature.reverse .wrap > *{ direction: ltr; }
}

/* -------------------------------------------------------------- */
/* Theme switcher — the signature interactive element.              */
/* Mirrors the app's own "Make it yours" appearance picker: tapping  */
/* a swatch re-tints this entire page, live.                         */
/* -------------------------------------------------------------- */
.theme-picker{
  margin-top: 26px;
}
.theme-picker p{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.swatches{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0; padding: 0;
}
.swatch{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
  transition: transform .18s ease;
}
.swatch:hover{ transform: scale(1.08); }
.swatch[aria-pressed="true"]::after{
  content: '';
  position: absolute; inset: -5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.theme-picker .hint{
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- */
/* Feature grid recap                                               */
/* -------------------------------------------------------------- */
.grid-section{ padding: 70px 0; border-top: 1px solid var(--line); }
.grid-head{ max-width: 56ch; margin-bottom: 44px; }
.grid-head h2{ font-size: clamp(26px, 3.6vw, 36px); }

.card-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
}
.card .ico{
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
  transition: background .25s ease, color .25s ease;
}
.card .ico svg{ width: 21px; height: 21px; }
.card h3{ font-size: 17px; margin-bottom: 6px; }
.card p{ font-size: 14.5px; margin: 0; }

/* -------------------------------------------------------------- */
/* Final CTA band                                                   */
/* -------------------------------------------------------------- */
.cta-band{
  margin: 0 24px 80px;
  max-width: calc(var(--wrap) - 0px);
  margin-inline: auto;
  border-radius: var(--radius-l);
  padding: 60px 32px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  transition: background .3s ease;
}
.cta-band h2{ color: var(--white); font-size: clamp(26px, 4vw, 38px); }
.cta-band p{ color: rgba(255,255,255,.86); max-width: 46ch; margin-inline: auto 1.2em; }
.cta-band .hero-actions{ justify-content: center; }
.cta-band .btn-primary{ background: var(--white); color: var(--accent-deep); box-shadow: none; }
.cta-band .btn-ghost{ border-color: rgba(255,255,255,.4); color: var(--white); }
.cta-band .btn-ghost:hover{ border-color: var(--white); color: var(--white); }

/* -------------------------------------------------------------- */
/* Footer                                                           */
/* -------------------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.site-footer .wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-links{
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0; padding: 0;
  font-size: 14px;
}
.footer-links a{ color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover{ color: var(--accent); }
.footer-copy{ font-size: 13px; color: var(--ink-soft); }

/* -------------------------------------------------------------- */
/* Privacy policy page prose                                        */
/* -------------------------------------------------------------- */
.policy{
  padding: 56px 0 90px;
}
.policy .wrap{ max-width: 760px; }
.policy-header{ margin-bottom: 36px; }
.policy-header h1{ font-size: clamp(30px, 5vw, 44px); }
.policy-updated{
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.policy-summary{
  background: var(--accent-soft);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  margin: 28px 0 40px;
  transition: background .25s ease;
}
.policy-summary h2{ font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.policy-summary ul{ margin: 0; padding-left: 20px; color: var(--ink); }
.policy-summary li{ margin-bottom: 6px; font-size: 15px; }

.policy-toc{
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  margin-bottom: 44px;
}
.policy-toc p{ font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em;}
.policy-toc ol{ margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.policy-toc li{ margin-bottom: 6px; font-size: 14.5px; }
.policy-toc a{ color: var(--ink-soft); text-decoration: none; }
.policy-toc a:hover{ color: var(--accent); }

.policy section{ margin-bottom: 38px; scroll-margin-top: 96px; }
.policy h2{ font-size: 21px; margin-bottom: 12px; }
.policy h3{ font-size: 16.5px; margin: 20px 0 8px; }
.policy p, .policy li{ font-size: 15.5px; }
.policy ul{ padding-left: 20px; margin: 0 0 1em; color: var(--ink-soft); }
.policy li{ margin-bottom: 6px; }
.policy a{ text-decoration-thickness: 1px; }

.back-to-top{
  display: inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
