/* Haven homepage. Converted from the design's inline styles: same values,
   same fluid sizes (clamp), same wrapping rules. No scripts, no outside
   requests: fonts are served from /fonts. */

/* ---- Fonts (SIL Open Font License 1.1; see fonts/LICENSE.md) ---- */
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Karla is a variable font: one file covers 400, 500 and 600. */
@font-face {
  font-family: "Karla"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/karla-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/karla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #F7F2E8; -webkit-font-smoothing: antialiased; }
a { color: #4F5F45; text-decoration-color: #B9C4B1; }
a:hover { color: #3B352C; }
a:focus-visible { outline: 2px solid #4F5F45; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.page { font-family: "Karla", sans-serif; color: #3B352C; background: #F7F2E8; overflow-x: hidden; }
.serif { font-family: "Instrument Serif", serif; font-weight: 400; }
.it { font-style: italic; }
.sage { color: #4F5F45; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; color: #5F7054; }
.h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; color: #3B352C; text-wrap: balance; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }

/* ---- Buttons ---- */
.btn { font-weight: 600; text-decoration: none; display: inline-block; }
.btn-primary { color: #FBF7EF; background: #4F5F45; }
.btn-primary:hover { color: #FBF7EF; background: #44523B; }
.btn-ghost { color: #3B352C; border: 1.5px solid #CFC4AE; }
.btn-ghost:hover { color: #3B352C; border-color: #B9AD94; }
.mail-note { font-size: 14px; line-height: 1.6; color: #5F584D; max-width: 520px; text-wrap: pretty; }
.mail-note .addr { font-weight: 600; color: #3B352C; white-space: nowrap; }

/* ---- Nav ---- */
.nav { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.logo { font-family: "Instrument Serif", serif; font-style: italic; font-size: 28px; color: #4F5F45; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px clamp(14px, 3vw, 32px); }
.nav-links a.plain { font-size: 15px; color: #5F584D; text-decoration: none; }
.nav-links a.plain:hover { color: #3B352C; }
.nav-links .btn { font-size: 15px; padding: 11px 20px; border-radius: 24px; }

/* ---- Hero ---- */
.hero { padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 120px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 88px); }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(48px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -1px; color: #3B352C; text-wrap: balance; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #5F584D; max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.hero-actions .btn-primary { font-size: 16px; padding: 16px 28px; border-radius: 30px; }
.hero-actions .btn-ghost { font-size: 16px; padding: 15px 26px; border-radius: 30px; }
.hero .mail-note { margin-top: -10px; }

/* Phone illustration (decorative) */
.phone-col { flex: 0 1 340px; min-width: 280px; margin: 0 auto; position: relative; display: flex; justify-content: center; }
.halo { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: #E6ECE1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phone { position: relative; width: 100%; max-width: 320px; aspect-ratio: 9 / 19; background: #1F1E1B; border-radius: 46px; padding: 12% 8% 9%; display: flex; flex-direction: column; align-items: center; box-shadow: 0 40px 80px rgba(59, 53, 44, 0.28), 0 0 0 8px #2A2824; }
.phone-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.phone-brand { display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #DCD3BF; display: flex; align-items: center; justify-content: center; font-family: "Instrument Serif", serif; color: #4F5F45; font-size: 14px; }
.phone-logo { font-family: "Instrument Serif", serif; font-style: italic; font-size: 20px; color: #A9B79F; }
.menu { display: flex; flex-direction: column; gap: 3px; }
.menu span { display: block; width: 15px; height: 1.5px; background: #B5AD9B; }
.menu span:last-child { width: 10px; }
.dots { display: flex; gap: 11px; margin-top: 24px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; }
.d-on { background: #8FA184; }
.d-today { background: #3A3731; }
.d-ring { border: 1.5px solid #8FA184; }
.d-off { background: #2C2A26; }
.grow { flex: 1; }
.mic { width: 48%; aspect-ratio: 1; border-radius: 50%; background: #7E9172; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 0 0 16px rgba(126, 145, 114, 0.1), 0 0 0 34px rgba(126, 145, 114, 0.05); }
.mic-head { width: 20px; height: 34px; border-radius: 11px; background: #F5EFE3; }
.mic-arc { width: 28px; height: 12px; border: 2.5px solid #F5EFE3; border-top: none; border-radius: 0 0 14px 14px; }
.prompt { font-family: "Instrument Serif", serif; font-style: italic; font-size: 19px; color: #E8E1D3; margin-top: 34px; }
.toggle { display: flex; gap: 2px; background: #2A2824; padding: 3px; border-radius: 16px; margin-top: 16px; }
.toggle span { padding: 5px 13px; border-radius: 13px; font-size: 11px; color: #8F887A; }
.toggle span.on { background: #3A3731; color: #E8E1D3; }
.tabbar { width: 100%; display: flex; justify-content: center; gap: 48px; padding-top: 14px; border-top: 1px solid #2A2824; }
.tabbar span { font-size: 10px; color: #9A927F; }

/* ---- How it works ---- */
.band-sand { background: #EFE7D6; }
.how { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1.5px solid #CFC4AE; }
.step-n { font-family: "Instrument Serif", serif; font-style: italic; font-size: 22px; color: #4F5F45; }
.step-t { font-family: "Instrument Serif", serif; font-size: 28px; color: #3B352C; }
.body16 { font-size: 16px; line-height: 1.6; color: #5F584D; text-wrap: pretty; }

/* ---- Journal or dream ---- */
.kinds { padding-top: clamp(64px, 9vw, 120px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kind { border-radius: 28px; padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.kind-journal { background: #EFE7D6; }
.kind-dream { background: #1C1D21; }
.pill-toggle { display: flex; gap: 2px; padding: 3px; border-radius: 16px; align-self: flex-start; }
.pill-toggle span { padding: 6px 14px; border-radius: 13px; font-size: 12px; }
.kind-journal .pill-toggle { background: #E4DBC8; }
.kind-journal .pill-toggle span { color: #8B8371; }
.kind-journal .pill-toggle span.on { background: #FBF7EF; color: #3B352C; font-weight: 600; }
.kind-dream .pill-toggle { background: #26272C; }
.kind-dream .pill-toggle span { color: #8A8A90; }
.kind-dream .pill-toggle span.on { display: flex; align-items: center; gap: 6px; background: #35373F; color: #E4E2DE; font-weight: 600; }
.kind-q { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(26px, 2.6vw, 32px); }
.kind-journal .kind-q { color: #3B352C; }
.kind-dream .kind-q { color: #E4E2DE; }
.kind-dream .body16 { color: #B4B3B8; }

/* ---- Smart features ---- */
.smart { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 80px); }
.smart-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.smart-text p { font-size: 17px; line-height: 1.65; color: #5F584D; max-width: 480px; text-wrap: pretty; }
.bullets { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; color: #3B352C; line-height: 1.5; }
.bullets li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7E9172; flex-shrink: 0; transform: translateY(-2px); }
.smart-cards { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card-todos .example-label { display: block; margin-bottom: 10px; }
.card-todos { background: #FBF7EF; border-radius: 28px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 18px 44px rgba(59, 53, 44, 0.09); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-family: "Instrument Serif", serif; font-size: 24px; color: #3B352C; }
.card-meta { font-size: 12px; color: #8B8371; }
.todo-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.todo-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #E9E1D0; font-size: 15px; color: #3B352C; }
.todo-list li:last-child { border-bottom: none; }
.check { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.check-done { background: #7E9172; }
.check-open { border: 1.5px solid #B9C4B1; }
.todo-list li.done { color: #8B8371; text-decoration: line-through; text-decoration-color: #CFC4AE; }
.card-insight { background: #E6ECE1; border-radius: 28px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.example-label { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #5F7054; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; font-weight: 500; color: #3B352C; background: #F7F2E8; padding: 7px 14px; border-radius: 18px; }
.tags span.on { color: #FBF7EF; background: #4F5F45; }
.quote { font-family: "Instrument Serif", serif; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: #3B352C; text-wrap: pretty; }

/* ---- Privacy ---- */
.band-dark { background: #1F1E1B; }
.privacy { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.privacy .intro { max-width: 680px; }
.privacy .eyebrow { color: #A9B79F; }
.privacy .h2 { color: #EDE6D8; }
.privacy .intro p { font-size: 17px; line-height: 1.65; color: #BDB5A3; text-wrap: pretty; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.level { background: #2A2824; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.level-smart { box-shadow: inset 0 0 0 1.5px #4F5F45; }
.level-t { font-family: "Instrument Serif", serif; font-size: 26px; color: #EDE6D8; }
.level-d { font-size: 15px; line-height: 1.6; color: #BDB5A3; }
.privacy-notes { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.privacy-notes p { font-size: 15px; color: #BDB5A3; line-height: 1.6; text-wrap: pretty; }
.privacy-notes a { color: #B9C7AE; text-decoration-color: #55604E; }
.privacy-notes a:hover { color: #EDE6D8; }
.privacy-notes a:focus-visible { outline-color: #B9C7AE; }

/* ---- Closing ---- */
.closing { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.closing h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(34px, 6vw, 80px); line-height: 1.08; color: #3B352C; max-width: 900px; }
.closing p.sub { font-size: 18px; line-height: 1.6; color: #5F584D; max-width: 480px; }
.closing .btn-primary { font-size: 16px; padding: 17px 32px; border-radius: 30px; margin-top: 6px; }
.closing .mail-note { margin-top: -4px; }

/* ---- Footer ---- */
.footer-band { border-top: 1px solid #E4DBC8; }
.footer { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer .logo { font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: 14px; color: #5F584D; text-decoration: none; }
.footer-links a:hover { color: #3B352C; text-decoration: underline; }
.copyright { font-size: 13px; color: #8B8371; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
