/* Plait: the stylesheet for /plait/ and its pages.

   Plait's own system, a third one beside the studio's and Stuffed's. It never
   loads either of theirs, and they never load this. Warm white paper, the
   app's red as the one accent, and each person's colour only where a person
   is shown. Type is the phone's own (San Francisco on Apple devices), so
   there are no font files and no third party. Light only. */

:root {
  color-scheme: light;

  --paper:  #FBF8F4;
  --card:   #FFFFFF;
  --sunk:   #F3EEE8;
  --ink:    #1E1B1A;
  --muted:  #5F5752;
  --rule:   #E6DFD8;

  /* the app's accent, and its high contrast shade for text */
  --red:      #D43F31;
  --red-text: #B82E24;

  /* people, from the app's starting colours */
  --sam:  #2F6FE4;
  --alex: #BF7410;
  --nia:  #18966F;

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(18px, 4vw, 40px);
  --max: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-text); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: #F6D5D1; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 244, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.mark img { width: 32px; height: 32px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(30, 27, 26, .08), 0 4px 10px -4px rgba(30, 27, 26, .25); }
.head-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.head-nav a { color: var(--muted); font-size: 16px; font-weight: 550; text-decoration: none; padding: 6px 0; }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--red); }

/* ---------- buttons and labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; background: var(--red); color: #fff; font: 650 17px/1.2 var(--sans); text-decoration: none; transition: background-color .2s ease, transform .2s var(--ease); touch-action: manipulation; }
.btn:hover { background: var(--red-text); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }

/* "Coming soon to the App Store": a label, not a link, until there is a store page. */
.soon { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 22px 10px 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.soon svg { flex: none; width: 22px; height: 22px; }
.soon span { display: grid; line-height: 1.15; }
.soon small { font-size: 12.5px; opacity: .78; }
.soon b { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(44px, 7vw, 86px); line-height: .98; letter-spacing: -0.04em; max-width: 9em; }
.lede { margin-top: 24px; max-width: 30em; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-note { font-size: 16px; color: var(--muted); }
.hero-note b { color: var(--ink); font-weight: 650; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero-art::before { content: ""; position: absolute; inset: 6% -14% 0; z-index: -1; background: radial-gradient(closest-side at 30% 35%, rgba(47, 111, 228, .16), transparent), radial-gradient(closest-side at 75% 60%, rgba(191, 116, 16, .14), transparent), radial-gradient(closest-side at 40% 85%, rgba(24, 150, 111, .14), transparent); filter: blur(10px); }
.hero-art img { width: 100%; }

/* ---------- sections ---------- */
.section { padding-top: clamp(56px, 8vw, 100px); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }

/* how it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 26px 30px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 50%; background: var(--c, var(--red)); color: #fff; font: 700 17px/1 var(--display); }
.steps li:nth-child(1) { --c: var(--sam); }
.steps li:nth-child(2) { --c: var(--alex); }
.steps li:nth-child(3) { --c: var(--nia); }
.steps h3 { font-size: 22px; letter-spacing: -0.02em; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* what's in it */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1.5px solid var(--ink); }
.features div { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.features h3 { font-size: 20px; letter-spacing: -0.015em; }
.features p { margin-top: 8px; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 880px; }
.plan { padding: clamp(26px, 4vw, 38px); border-radius: 28px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.plan.is-premium { background: var(--ink); color: #fff; box-shadow: none; }
.plan h3 { font-size: 24px; }
.plan .price { margin-top: 14px; font: 700 clamp(30px, 3.4vw, 40px)/1.05 var(--display); letter-spacing: -0.03em; }
.plan .price small { display: block; margin-top: 8px; font: 500 16px/1.4 var(--sans); letter-spacing: 0; opacity: .78; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 17px; line-height: 1.45; }
.plan li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--red); }
.plan.is-premium li::before { background: #F08A7F; }
.plans-note { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 46em; }

/* your calendar stays yours */
.yours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding: clamp(30px, 5vw, 56px); border-radius: 32px; background: var(--sunk); }
.yours h2 { font-size: clamp(30px, 3.6vw, 44px); }
.yours p { margin-top: 16px; color: var(--muted); }
.yours ul { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.yours li { padding: 14px 0; border-bottom: 1px solid #DDD5CC; font-weight: 600; font-size: 18px; }

/* last word */
.last { margin-top: clamp(56px, 8vw, 100px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(32px, 5vw, 60px); border-radius: 32px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.last h2 { font-size: clamp(30px, 4vw, 48px); }
.last p { margin-top: 12px; color: var(--muted); }

/* ---------- documents: privacy ---------- */
.doc { max-width: 42em; padding-top: clamp(40px, 7vw, 80px); }
.doc h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; }
.doc .standfirst { margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); }
.doc .updated { margin-top: 14px; font-size: 15px; color: var(--muted); }
.doc h2 { margin-top: 44px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; }
.doc p, .doc li { font-size: 18px; line-height: 1.65; }
.doc h2 + p, .doc p + p, .doc p + ul, .doc ul + p { margin-top: 14px; }
.doc ul { margin: 0; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.short { margin-top: 32px; padding: 24px 26px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }

/* ---------- support ---------- */
.page-head { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(28px, 4vw, 44px); max-width: 42em; }
.page-head h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; }
.page-head p { margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); }
.mail-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: center; padding: clamp(24px, 4vw, 36px); border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.mail-card a.mail { color: var(--ink); font: 700 clamp(22px, 3vw, 32px)/1.15 var(--display); letter-spacing: -0.02em; text-decoration: none; word-break: break-word; }
.mail-card a.mail:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.mail-card p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.faq { margin-top: clamp(44px, 6vw, 64px); max-width: 46em; }
.faq h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details > div { padding: 0 0 24px; color: var(--muted); }
.faq details > div p + p, .faq details > div p + ol, .faq details > div ol + p { margin-top: 12px; }
.faq ol { margin: 0; padding-left: 1.3em; }
.faq li + li { margin-top: 4px; }
.faq b { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--rule); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; padding-top: 36px; }
.foot-claim { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 24em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a { color: var(--ink); font-size: 16px; font-weight: 550; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.made { padding: 28px 0 40px; color: var(--muted); font-size: 14.5px; }
.made a { color: inherit; }

/* ---------- motion: the hero settles in once, then everything stays put ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > div:first-child { animation: rise .8s var(--ease) both; }
  .hero-art { animation: rise .9s var(--ease) .12s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .steps, .features { grid-template-columns: 1fr; }
  .steps { gap: 12px; }
  .yours { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .head-in { height: 60px; }
  .head-nav a { font-size: 15px; }
  .plans { grid-template-columns: 1fr; }
  .last, .mail-card { grid-template-columns: 1fr; }
  .last .btn, .mail-card .btn { justify-self: start; }
}
