/* ============================================================
   Twig Check — marketing site
   Organic / editorial. Warm paper, sage gradient, soft serif.
   ============================================================ */

:root {
  --paper:    #F4F1E8;
  --paper-2:  #ECE7D8;
  --ink:      #15281B;
  --ink-soft: #435447;
  --sage-100: #DCEEE0;
  --sage-300: #9ED6A8;
  --sage-500: #4D9461;
  --sage-700: #2E5C3A;
  --sage-900: #173123;
  --water:    #3F93CE;
  --amber:    #D49A45;
  --coral:    #C9714E;
  --line:     rgba(21, 40, 27, 0.12);

  --grad-sage: linear-gradient(135deg, #9ED6A8 0%, #4D9461 100%);
  --grad-card: linear-gradient(150deg, #4C8F5E 0%, #2E5C3A 100%);

  --shadow-sm: 0 2px 8px rgba(21, 40, 27, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(21, 40, 27, 0.30);
  --shadow-lg: 0 40px 90px -30px rgba(21, 40, 27, 0.45);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Raleway", system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle paper grain + atmospheric sage glows */
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(158, 214, 168, 0.30), transparent 55%),
    radial-gradient(90% 60% at -10% 20%, rgba(212, 154, 69, 0.10), transparent 50%);
  background-attachment: fixed;
}

::selection { background: var(--sage-300); color: var(--sage-900); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--sage-500); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage-500);
}

/* ───────────── buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 700; font-size: 0.97rem;
  padding: 0.85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--sage-700); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.4); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--text { color: var(--ink-soft); padding-left: 0.4em; }
.btn--text:hover { color: var(--sage-500); }

/* ───────────── nav ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.5rem;
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-sage);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 20px; height: 20px; fill: #fff; transform: rotate(-8deg); }
.brand__name { font-family: var(--serif); letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; font-size: 0.95rem; }
.nav__links a:not(.btn):hover { color: var(--sage-500); }

/* ───────────── hero ───────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1rem, 3.5vw, 2.75rem) 1.5rem 5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.2rem); margin: 1rem 0 1.4rem;
  font-weight: 600;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 30rem; }
.hero__cta { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 2.2rem; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 1.4rem; flex-wrap: wrap; list-style: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--water { background: var(--water); }
.dot--sage { background: var(--sage-500); }
.dot--amber { background: var(--amber); }

/* ───────────── phone mockup ───────────── */
.hero__device { position: relative; display: grid; place-items: center; }
.device__glow {
  position: absolute; inset: 10% 5%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,148,97,.35), transparent 65%);
  filter: blur(40px);
}
.phone {
  position: relative; z-index: 1;
  width: clamp(240px, 30vw, 310px); aspect-ratio: 9 / 19.2;
  background: #10211A; border-radius: 42px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  transform: rotate(2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero__device:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #10211A; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: #F3F1EA;
}
/* Real captured screenshot: fills the screen, top-aligned so the status bar +
   title show and the grid bleeds naturally. The capture has its own status bar
   + Dynamic Island, so the simulated CSS notch is hidden to avoid doubling. */
.phone--shot .phone__notch { display: none; }
.phone__shot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.app { padding: 18px 14px; height: 100%; }
.app__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 2px; }
.app__gear { width: 16px; height: 16px; border-radius: 50%; border: 2.4px solid var(--sage-500); position: relative; }
.app__gear::after { content:""; position:absolute; inset: 3px; border-radius:50%; border:2px solid var(--sage-500); }
.app__plus { color: var(--water); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.app__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin: 6px 4px 12px; letter-spacing: -0.02em; }
.app__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px -8px rgba(21,40,27,.4); }
.pcard__hero { aspect-ratio: 1.5 / 1; background: var(--grad-sage); display: grid; place-items: center; position: relative; overflow: hidden; }
.pcard__hero svg { width: 38px; height: 38px; fill: rgba(255,255,255,.85); transform: rotate(-10deg) translate(2px, 3px); }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__foot { padding: 8px 9px 10px; }
.pcard__name { display: block; font-weight: 700; font-size: 0.74rem; color: var(--ink); }
.pill {
  display: inline-block; margin-top: 5px; font-size: 0.6rem; font-weight: 700;
  padding: 2.5px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft);
}
.pill--overdue { background: rgba(201,113,78,.16); color: var(--coral); }
.pill--today { background: rgba(63,147,206,.16); color: var(--water); }
.pill--calm { background: transparent; color: rgba(67,84,71,.6); padding-left: 0; }

/* ───────────── section heads ───────────── */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: 0.8rem; }
.section-sub { margin: 1rem auto 0; max-width: 34rem; color: var(--ink-soft); font-size: 1.05rem; }

/* ───────────── features ───────────── */
.features { padding: clamp(3rem, 8vw, 6rem) 0; }
.grid {
  max-width: var(--maxw); margin: 2.6rem auto 0; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.card {
  background: rgba(255,255,255,.55); border: 1px solid var(--line);
  border-radius: 22px; padding: 2rem 1.8rem;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card__icon--sage  { background: var(--sage-100); }
.card__icon--sage svg  { stroke: var(--sage-700); }
.card__icon--water { background: rgba(63,147,206,.14); }
.card__icon--water svg { stroke: var(--water); }
.card__icon--amber { background: rgba(212,154,69,.16); }
.card__icon--amber svg { stroke: #b07f2e; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card em { font-style: normal; color: var(--sage-700); font-weight: 700; background: var(--sage-100); padding: 0 .25em; border-radius: 4px; }

/* ───────────── reminder showcase ───────────── */
.showcase {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 1.5rem clamp(4rem, 8vw, 7rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.showcase h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0.8rem 0 1.2rem; }
.showcase p { color: var(--ink-soft); max-width: 30rem; }
.ticks { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.2rem; height: 1.2rem;
  border-radius: 50%; background: var(--grad-sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/0.9rem no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/0.9rem no-repeat;
}

/* notification mockup */
.showcase__notif { display: grid; place-items: center; }
.notif {
  width: min(100%, 380px); background: rgba(255,255,255,.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 24px; padding: 1.1rem 1.2rem 0.7rem;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.5deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.showcase__notif:hover .notif { transform: rotate(0) translateY(-4px); }
.notif__head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.7rem; }
.notif__app { width: 26px; height: 26px; border-radius: 7px; background: var(--grad-sage); display: grid; place-items: center; }
.notif__app svg { width: 15px; height: 15px; fill: #fff; transform: rotate(-8deg); }
.notif__name { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-soft); }
.notif__time { margin-left: auto; font-size: 0.72rem; color: rgba(67,84,71,.6); }
.notif__title { font-weight: 800; font-size: 1.02rem; }
.notif__body { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.7rem; }
.notif__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-bottom: 0.4rem; }
.notif__actions button {
  font-family: var(--sans); font-weight: 700; font-size: 0.8rem; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink);
  padding: 0.5em 0.9em; border-radius: 999px; transition: background .2s, color .2s, transform .2s;
}
.notif__actions button:hover { transform: translateY(-1px); background: #fff; }
.notif__actions .is-accent { background: var(--grad-sage); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* ───────────── CTA band ───────────── */
.cta { padding: 1rem 1.5rem clamp(4rem, 8vw, 6rem); }
.cta__inner {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--grad-card); color: var(--paper);
  border-radius: 36px; padding: clamp(2.5rem, 6vw, 4.5rem) 2rem;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta__inner::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1256 1256'%3E%3Cpath fill='%23ffffff' d='M270.025 748.902C209.784 641.209 208.17 518.713 218.06 434.512C294.87 449.056 381.097 516.324 445.219 603.268C489.703 663.587 523.548 733.376 536.228 801.6C571.656 645.515 650.071 531.454 742.449 449.628C859.735 345.74 982.148 291.463 1102.42 273.81C1102.42 273.81 1068.23 493.961 917.891 701.48C815.459 842.867 613.776 950.542 529.234 944.63C444.691 938.719 315.419 830.054 270.025 748.902Z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.07; transform: rotate(-18deg); pointer-events: none;
}
.cta__mark { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin: 0 auto 1.5rem; }
.cta__mark svg { width: 30px; height: 30px; fill: #fff; transform: rotate(-8deg); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; }
.cta h2, .cta p { position: relative; z-index: 1; }
.cta p { max-width: 34rem; margin: 1.2rem auto 0; color: rgba(255,255,255,.85); }
.btn--store { background: var(--paper); color: var(--ink); position: relative; z-index: 1; margin: 1.8rem auto 0; box-shadow: var(--shadow-sm); }
.btn--store:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn__apple { width: 17px; height: 20px; fill: currentColor; margin-top: -3px; }
.cta__or { font-size: 0.9rem !important; max-width: 30rem; margin: 1.7rem auto 0 !important; color: rgba(255,255,255,.72) !important; }
.cta__form { position: relative; z-index: 1; display: flex; gap: 0.6rem; max-width: 440px; margin: 1rem auto 0.8rem; flex-wrap: wrap; justify-content: center; }
.cta__form input {
  flex: 1 1 220px; font-family: var(--sans); font-size: 1rem;
  padding: 0.9em 1.2em; border-radius: 999px; border: none; background: rgba(255,255,255,.95); color: var(--ink);
}
.cta__form input::placeholder { color: rgba(67,84,71,.6); }
.cta__form .btn--solid { background: var(--paper); color: var(--ink); }
.cta__form .btn--solid:hover { background: #fff; }
.cta__fine { font-size: 0.82rem; color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.cta__success {
  position: relative; z-index: 1; margin: 2rem auto 0.8rem; max-width: 440px;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: #fff;
}

/* ───────────── footer ───────────── */
.foot {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft);
}
.foot a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.foot a:hover { color: var(--sage-700); }
.foot__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 700; color: var(--ink); }
.foot__brand .brand__mark { width: 28px; height: 28px; border-radius: 8px; }
.foot__brand .brand__mark svg { width: 16px; height: 16px; }

/* ───────────── floating leaves ───────────── */
.leaves { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.leaf { position: absolute; fill: var(--sage-500); opacity: 0.07; }
.leaf--1 { width: 340px; top: -60px; right: -80px; transform: rotate(20deg); }
.leaf--2 { width: 220px; bottom: 12%; left: -70px; transform: rotate(-30deg); opacity: 0.05; animation: drift 14s ease-in-out infinite; }
.leaf--3 { width: 160px; top: 44%; right: 6%; opacity: 0.045; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(-30deg); }
  50% { transform: translateY(-26px) rotate(-22deg); }
}

/* ───────────── reveal animations ───────────── */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}

/* ───────────── legal / privacy page ───────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem 5rem; position: relative; z-index: 1; }
.legal .eyebrow { margin-bottom: 0.6rem; }
.legal h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2.4rem, 6vw, 3.2rem); color: var(--ink); margin: 0 0 0.5rem; }
.legal__meta { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 2.4rem; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ink); margin: 2.2rem 0 0.6rem; }
.legal p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 1rem; max-width: 68ch; }
.legal a { color: var(--sage-700); text-decoration: underline; text-underline-offset: 2px; }

/* ───────────── responsive ───────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1rem; }
  .hero__copy { max-width: none; }
  /* Stacked layout: copy on top, then the phone mockup (natural DOM order). */
  .grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 620px) {
  .nav__links a:not(.btn) { display: none; }
  .hero__cta { justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .leaf--1 { width: 220px; }
}
