/* yaavi.app: the Dusk vibe's colours and fonts (design/themes.json), so the site looks like the app. */
:root {
  --bg: #F7EDE6;
  --surface: #FFF8F3;
  --text: #2E1F2B;
  --muted: #6B5566;
  --accent: #B4532A;
  --accent-dark: #8E3F1F;
  --border: #E7D5CA;
  --sky-1: #3F2840;
  --sky-2: #5E3352;
  --sky-3: #A35F6E;
  --sun: #EFA36B;
  --hill-1: #D9C3BE;
  --hill-2: #EAD8D2;
  --radius: 20px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Instrument Sans", -apple-system, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -0.4px; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.sub { margin-top: 14px; font-size: 18px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(247, 237, 230, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 500; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.nav .btn { padding: 9px 18px; font-size: 15px; color: #fff; }
.nav .signin { font-weight: 600; }
.nav .btn:hover { color: #fff; }
.menu-btn { display: none; }
/* Phones: the bar is the name, the one button, and a menu; the links open as rows under it, pushing the page down. */
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .top .wrap { height: auto; min-height: 64px; flex-wrap: wrap; gap: 0 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav { display: contents; }
  .nav .btn { order: 1; margin-left: auto; padding: 8px 16px; }
  .menu-btn { order: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }
  .menu-btn[aria-expanded="true"] { background: var(--border); }
  .nav a:not(.btn) { display: none; order: 3; flex: 0 0 100%; padding: 12px 0; font-size: 17px; border-top: 1px solid var(--border); }
  .top.open .nav a:not(.btn) { display: block; }
  .top.open .nav a:nth-child(1) { margin-top: 10px; }
}
@media (max-width: 360px) {
  .brand { font-size: 21px; gap: 8px; }
  .nav .btn { padding: 8px 12px; font-size: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 999px; border: 0; font-size: 16px; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--surface); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.sky { position: absolute; inset: 0 0 auto 0; height: 360px; background: linear-gradient(var(--sky-1) 0 30%, var(--sky-2) 30% 55%, var(--sky-3) 55% 100%); }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--bg)); }
.sun { position: absolute; width: 96px; height: 96px; border-radius: 50%; background: var(--sun); left: 46%; top: 130px; opacity: 0.9; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 200px; padding-bottom: 72px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 20px; color: var(--muted); margin-bottom: 28px; max-width: 34em; }
.hero .fine { margin-top: 14px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 130px; }
  .sky { height: 280px; }
  .sun { top: 34px; left: auto; right: 14%; width: 60px; height: 60px; }
}

/* Phone mock-up */
.phone { background: var(--bg); border: 10px solid #2E1F2B; border-radius: 40px; padding: 22px 16px 18px; box-shadow: 0 30px 60px rgba(46, 31, 43, 0.25); max-width: 340px; margin: 0 auto; width: 100%; }
.phone .date { font-size: 12px; color: var(--muted); }
.phone .hello { font-family: Fraunces, Georgia, serif; font-size: 26px; margin: 2px 0 14px; }
.phone .day { font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.card + .card { margin-top: 8px; }
.card .label { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.card .from { font-family: Fraunces, Georgia, serif; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { font-size: 11px; color: var(--muted); border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 2px 8px; }
.links { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--accent); font-weight: 600; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.intro { max-width: 640px; margin-bottom: 40px; }
.intro p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
section.alt .tile { background: var(--bg); }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); }
.tile .num { font-family: Fraunces, Georgia, serif; font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.example { margin-top: 14px; font-family: Fraunces, Georgia, serif; font-size: 16px; color: var(--text); border-left: 3px solid var(--accent); padding-left: 12px; }

/* Friends */
.friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .friends { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .friends { grid-template-columns: 1fr; } }
.friend { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.face { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 18px; }
.friend b { display: block; }
.friend .tone { font-size: 13px; color: var(--muted); }
.friend p { font-size: 14px; margin-top: 4px; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
section.alt .checks li::before { box-shadow: inset 0 0 0 4px var(--surface); }
.checks b { display: block; }
.checks span { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: Fraunces, Georgia, serif; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.faq-more { display: none; cursor: pointer; font: inherit; font-weight: 600; }

/* Final call */
.final { text-align: center; }
.final .ctas { justify-content: center; margin-top: 26px; }
.final p { color: var(--muted); font-size: 18px; margin-top: 12px; }

/* Article pages */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 16px; }
.page .lede { font-size: 19px; color: var(--muted); margin-bottom: 36px; }
.page h2 { font-size: 28px; margin: 44px 0 12px; }
.page h3 { margin: 26px 0 8px; }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 22px; }
.page li + li { margin-top: 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer h4 { margin: 0 0 10px; color: var(--text); font-size: 15px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 760px) {
  footer { padding: 28px 0; }
  footer .wrap { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
  footer .wrap > :first-child p:first-of-type { display: none; }
}

/* Joining the testers */
.join { max-width: 420px; margin: 28px auto 0; text-align: left; display: grid; gap: 16px; }
.join .field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.join input[type=email] { font: inherit; font-weight: 400; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.join input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.phones { border: 0; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.phones legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.phones label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.phones input { accent-color: var(--accent); width: 18px; height: 18px; }
.join .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 600; }
.join .btn:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--accent); min-height: 1.4em; text-align: center; }
.joined { max-width: 460px; margin: 28px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.joined p { font-size: 16px; }

/* Get the app (/download): one card per platform, the install steps, the QR code */
.page .get-lede { max-width: 36em; }
.get { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .get { grid-template-columns: 1fr; } }
.platform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.page .platform h2 { margin: 0; font-size: 32px; }
.page .platform p { color: var(--muted); margin: 0; }
.page .platform p.fine { margin-top: -4px; }
.platform .btn { justify-self: start; }
.btn.quiet { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn.quiet:hover { background: var(--border); }
.platform .soon { justify-self: start; font-size: 15px; font-weight: 500; color: #6B4E0E; background: #F3E9D2; border-radius: 999px; padding: 3px 12px 1px; }
.qr { display: flex; gap: 16px; align-items: center; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--border); }
.qr img { flex: 0 0 112px; border-radius: 8px; background: #fff; padding: 6px; border: 1px solid var(--border); }
.steps { counter-reset: step; display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px 22px 80px; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 20px; }
.steps b { display: block; font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--muted); }
.page .note { margin-top: 28px; }

/* The landing page on a phone: the same content in about half the scroll. Scoped to it, so the other pages
   (your-circle.html has .friends too) stay as they are. */
@media (max-width: 760px) {
  .hero { border-bottom: 1px solid var(--border); }
  .hero .wrap { padding-top: 92px; padding-bottom: 0; gap: 28px; }
  .sky { height: 130px; }
  .sun { top: 20px; right: 24px; width: 44px; height: 44px; }
  .hero h1 { font-size: 34px; margin-bottom: 12px; }
  .hero .lede { font-size: 18px; line-height: 1.5; margin-bottom: 20px; }
  .hero .ctas { gap: 8px; }
  .hero .ctas .btn { flex: 1 1 auto; padding: 12px 14px; font-size: 15px; }
  /* The mock-up rises from the edge of the hero: the check-in shows, the notes run off below it. */
  .hero .phone { max-height: 310px; overflow: hidden; border-bottom: 0; border-radius: 32px 32px 0 0; box-shadow: none; }

  .hero ~ section { padding: 44px 0; }
  .hero ~ section .intro { margin-bottom: 22px; }
  .hero ~ section .intro p, .hero ~ section .sub, .final p { font-size: 16px; }
  .hero ~ section .grid { gap: 10px; }
  .hero ~ section .tile { padding: 16px; }
  .hero ~ section .tile h3 { font-size: 19px; margin-bottom: 4px; }
  .hero ~ section .tile p { font-size: 15.5px; line-height: 1.5; }

  /* How it works: the number beside the words, not above them. */
  #how .tile { position: relative; padding-left: 54px; }
  #how .tile .num { position: absolute; left: 18px; top: 14px; font-size: 28px; margin: 0; }
  #how .tile .example { margin-top: 10px; font-size: 15.5px; }

  /* The friends sit in one row to swipe, the next one showing at the edge. */
  #circle .friends { display: flex; gap: 10px; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
  #circle .friends::-webkit-scrollbar { display: none; }
  #circle .friend { flex: 0 0 250px; scroll-snap-align: start; }

  #private .checks { gap: 10px; font-size: 15.5px; line-height: 1.5; }

  /* FAQ: the first six, the rest one tap away. */
  .faq details { padding: 13px 0; }
  .faq summary { font-size: 17px; line-height: 1.3; }
  .faq summary::after { font-size: 20px; }
  .faq details p { font-size: 15.5px; line-height: 1.5; }
  .faq.short details:nth-of-type(n+7) { display: none; }
  .faq.short .faq-more { display: inline-flex; margin-top: 18px; padding: 10px 20px; font-size: 15px; }
}
