/* Landing pages (ZAE-1009): /, /en/, /es/ and /404.html share this file.
   Layout follows the user's website draft, colours the app icon's pink
   (ZAE-998). Dark only, no third-party resources. */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/PlayfairDisplay-Variable.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #1F1A20;
  --sunken: #211B23;
  --card: #2B242B;
  --raised: #352A36;
  --frame: #151515;
  --text: #F6EDF6;
  --text-soft: #BFB3BF;
  --text-quiet: #8E8390;
  --rose: #E0A1B9;
  --rose-quiet: rgba(224, 161, 185, .14);
  --rose-line: rgba(224, 161, 185, .4);
  --divider: #403941;
  --hairline: rgba(246, 237, 246, .07);
  --person-1: #68765E;
  --person-2: #A96E85;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --phone-s: .6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--rose); text-decoration: none; transition: color 140ms var(--ease); }
a:hover { color: #EFC9D8; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(224, 161, 185, .24); }
svg { flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--ground); font-weight: 600; }
.skip:focus { top: 12px; }

.page {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(90% 40% at 50% 0%, rgba(224, 161, 185, .08) 0%, transparent 72%);
}
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-top { top: -320px; right: -360px; width: 980px; height: 980px; border: 1px solid rgba(224, 161, 185, .14); }
.ring-side { top: 520px; left: -520px; width: 900px; height: 900px; border: 1px solid rgba(224, 161, 185, .10); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Head */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--hairline); }
.site-head .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { display: inline-flex; align-items: center; gap: 7px; }
.brand-mark img { display: block; }
.brand-claim { color: var(--rose); font-size: 16px; font-weight: 500; }
.brand-dot { color: var(--text-quiet); }
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
.lang a { padding: 5px 9px; border-radius: 999px; color: var(--text-quiet); }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--raised); color: var(--text); font-weight: 600; }

/* Sections */
.section { position: relative; border-top: 1px solid var(--hairline); }
.section.sunken { background: var(--sunken); }
.section > .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
h2 { font-size: 40px; line-height: 1.14; }
.lead { font-size: 17px; color: var(--text-soft); }
.section > .wrap.split { flex-direction: row; flex-wrap: wrap; gap: 64px; }
.split > :first-child { flex: 1 1 320px; max-width: 440px; }
.split > :last-child { flex: 1 1 420px; }

/* Opening */
.hero { position: relative; }
.hero .wrap { padding-top: 96px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero-text { flex: 1 1 440px; max-width: 560px; display: flex; flex-direction: column; gap: 24px; }
h1 { font-size: clamp(2.6rem, 7vw, 3.75rem); line-height: 1.08; }
.hero-text .lead { font-size: 18px; max-width: 44ch; }
.state {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  color: var(--rose); font-size: 15px; font-weight: 500;
}
.hero-card { flex: 1 1 380px; display: flex; justify-content: center; animation: rise 700ms var(--ease) both; }

/* A day card, as in the circle */
.day-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--hairline); border-radius: 26px; padding: 18px 20px; }
.day-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: var(--text); flex: none; }
.p1 { background: var(--person-1); }
.p2 { background: var(--person-2); }
.who { display: flex; flex-direction: column; gap: 3px; }
.who b { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.who span { font-size: 14px; color: var(--text-soft); }
.things { list-style: none; margin: 0; padding: 0; }
.things li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--divider); font-size: 15px; font-weight: 500; line-height: 1.45; }
.num { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--rose); width: 22px; flex: none; }
.day-card-foot { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--divider); }
.heart { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--rose-line); background: var(--rose-quiet); display: inline-flex; align-items: center; justify-content: center; }

/* Three steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--hairline); border-radius: 26px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-size: 20px; width: auto; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--text-soft); }

/* What Habedank is not */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-quiet); font-size: 16px; }
.not-text { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }

/* The app, rebuilt in HTML */
.circle-text { display: flex; flex-direction: column; gap: 16px; }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin: 0; padding: 0; list-style: none; }
.phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phones figcaption { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.phone-box { position: relative; width: calc(430px * var(--phone-s)); height: calc(880px * var(--phone-s)); }
.phone {
  position: absolute; top: 0; left: 0; width: 430px; height: 880px;
  transform: scale(var(--phone-s)); transform-origin: top left;
  border-radius: 56px; padding: 12px; background: var(--frame); border: 1px solid rgba(246, 237, 246, .10);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
  background: var(--ground);
  background-image: radial-gradient(120% 52% at 50% 0%, rgba(224, 161, 185, .08) 0%, transparent 72%);
  padding: 32px 16px 0; font-size: 15px; line-height: 1.45;
}
.screen-head { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--rose); font-size: 14px; font-weight: 500; }
.screen-title { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.14; letter-spacing: -.01em; }
.screen-sub { color: var(--text-soft); }
.switch { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--hairline); }
.switch span { flex: 1; text-align: center; height: 34px; line-height: 34px; border-radius: 999px; color: var(--text-soft); font-weight: 500; }
.switch .on { background: var(--raised); color: var(--text); }
.fields { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; }
.field { display: flex; gap: 12px; align-items: flex-start; background: var(--sunken); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 16px; font-weight: 500; }
.field.focus { border-color: var(--rose-line); }
.private { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--text-soft); font-size: 14px; font-weight: 500; }
.primary { display: flex; justify-content: center; padding-top: 22px; }
.primary span { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--text); color: var(--ground); font-size: 16px; font-weight: 600; }
.closing-line { margin-top: 18px; text-align: center; color: var(--text-quiet); font-size: 14px; }
.tabbar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 4px; padding: 5px; border-radius: 26px; background: var(--sunken); border: 1px solid var(--hairline); }
.tabbar span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 999px; color: var(--text-soft); font-weight: 500; }
.tabbar .on { background: var(--raised); color: var(--text); }
.filter { display: flex; gap: 10px; padding: 18px 0 4px; }
.filter span { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 6px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-soft); font-weight: 500; }
.filter .avatar { width: 28px; height: 28px; font-size: 11px; }
.cards { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; }
.screen .day-card { max-width: none; }
.screen .day-card.short .day-card-head { padding-bottom: 0; }
.back { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline); display: inline-flex; align-items: center; justify-content: center; color: var(--text-soft); }
.detail-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 28px; text-align: center; }
.detail-head .avatar { width: 72px; height: 72px; font-size: 26px; }
.detail-card { margin-top: 28px; }
.detail-card .things li:first-child { border-top: 0; }
.heart-big { display: flex; justify-content: center; padding-top: 26px; }
.heart-big span { width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--rose-line); background: var(--rose-quiet); display: inline-flex; align-items: center; justify-content: center; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 32px; display: flex; justify-content: center; }
.toast span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: rgba(53, 42, 54, .92); border: 1px solid rgba(246, 237, 246, .10); font-weight: 500; }

/* Your data */
.points { list-style: none; margin: 0; padding: 0; }
.points li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--hairline); color: var(--text-soft); }
.points li:last-child { border-bottom: 1px solid var(--hairline); }
.points svg { margin-top: 4px; }
.more { font-weight: 500; }

/* Good to know */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 24px; color: var(--rose); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--text-soft); max-width: 56ch; }
.faq .more { margin-top: 24px; }

/* Closing */
.outro .wrap { align-items: center; text-align: center; gap: 20px; }
.outro .state { align-self: center; }
.outro p:first-child { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.25; max-width: 28ch; }

/* Foot */
.site-foot { border-top: 1px solid var(--hairline); }
.site-foot .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 28px 32px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.foot-links a { color: var(--text-soft); }
.foot-links a:hover { color: var(--text); }

/* Error page */
.lost { min-height: calc(100vh - 77px); display: flex; align-items: center; }
.lost .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; max-width: 720px; }
.lost section { display: flex; flex-direction: column; gap: 12px; }
.lost section + section { padding-top: 32px; border-top: 1px solid var(--hairline); }
.lost h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.lost h2 { font-size: 26px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 72px; gap: 48px; }
  .section > .wrap { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  h2 { font-size: 32px; }
  .section > .wrap.split { gap: 40px; }
  .hero-text, .hero-card, .split > :first-child, .split > :last-child { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .brand-claim, .brand-dot { display: none; }
  .site-head .wrap { height: 64px; }
  .lost { min-height: calc(100vh - 65px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
