/* HindNote landing page. Colors and type follow design/ (Daylight look; Evening for dark). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #F5F6F8;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-sunk: #F5F6F8;
  --border: #E2E5EA;
  --border-strong: #D5DAE1;
  --text: #1B2230;
  --text-2: #3F4857;
  --muted: #5A6474;
  --accent: #0F6E6A;
  --accent-hover: #0A4F4C;
  --accent-soft: #E3F1EF;
  --accent-ink: #0A4F4C;
  --on-accent: #FFFFFF;
  --user-bubble: #E6E9EE;
  --tint: #E8EEF0;
  --shadow: 0 24px 60px rgba(27, 34, 48, 0.12);
  --shadow-sm: 0 8px 24px rgba(27, 34, 48, 0.08);
  --radius: 16px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181F;
    --bg-alt: #1A1F28;
    --surface: #212733;
    --surface-sunk: #1A1F28;
    --border: #2E3542;
    --border-strong: #3A4352;
    --text: #E8EBF0;
    --text-2: #C3C9D3;
    --muted: #A0A8B5;
    --accent: #5CC2B9;
    --accent-hover: #86D6CF;
    --accent-soft: #1E3B3A;
    --accent-ink: #9FE0D9;
    --on-accent: #0B1F1E;
    --user-bubble: #2C3442;
    --tint: #1C2530;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border-strong);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 720px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--text); }
.section-nav { display: flex; gap: 4px; margin-left: auto; }
.section-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 8px;
}
.section-nav a:hover { color: var(--accent); }
.header-signin { min-height: 44px; border-color: var(--border-strong); color: var(--text); }
.header-note {
  font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

/* Hero */
.hero { padding: 88px 0 0; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  max-width: 12em;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); margin: 22px 0 32px; max-width: 30em; }
.beta-note {
  font-size: 15px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft);
  padding: 10px 18px; border-radius: 999px;
}

/* Product picture: an app window with a phone in front */
.shot { position: relative; margin: 64px auto 0; max-width: 1000px; padding-bottom: 40px; }
.app-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-right: 160px;
}
.app-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-sunk); }
.app-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.app-body { display: flex; min-height: 420px; }
.app-nav {
  flex: 0 0 190px; padding: 20px 12px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-2);
}
.app-nav b { color: var(--text); font-size: 16px; padding: 0 10px 14px; }
.app-nav i { font-style: normal; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.app-nav i.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.app-nav .nav-foot { margin-top: auto; }
.app-main { flex: 1; min-width: 0; padding: 28px 32px; background: var(--bg); }
.app-date { font-size: 24px; font-weight: 700; }
.app-streak { font-size: 13px; color: var(--muted); margin: 2px 0 16px; }
.sheet {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 26px 14px; display: flex; flex-direction: column; gap: 10px; max-width: 440px;
}
.entry-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; }
.entry-body { font-family: var(--serif); font-size: 16px; line-height: 1.75; }
.sheet-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 10px; font-size: 13px; color: var(--muted);
}
.fake-btn {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-family: var(--sans); font-size: 13px; font-weight: 600;
}

.phone {
  position: absolute; right: 0; bottom: 0; width: 300px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 32px;
  box-shadow: var(--shadow); padding: 24px 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.phone-title { font-weight: 700; font-size: 17px; }
.bubble-user {
  align-self: flex-end; max-width: 88%; background: var(--user-bubble);
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  font-family: var(--serif); font-size: 15px; line-height: 1.45;
}
.answer { font-size: 14px; line-height: 1.7; }
.phone-input {
  margin-top: 4px; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; color: var(--muted);
}

.cite {
  display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--sans);
  font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; vertical-align: 1px;
}

/* Features */
.features { padding: 128px 0 40px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 48px; }
.feature h3 { font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -0.015em; margin-top: 28px; }
.feature > p { color: var(--text-2); margin-top: 10px; max-width: 28em; }
.pic {
  background: var(--tint); border-radius: var(--radius); min-height: 260px;
  display: flex; align-items: center; justify-content: center; padding: 40px 28px;
}
.mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 20px 22px; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; gap: 10px;
}
.mini-q { font-weight: 600; font-size: 15px; }
.mini-text { font-size: 15px; line-height: 1.8; }
.mini-entry { font-family: var(--serif); font-size: 14px; color: var(--text-2); border-left: 3px solid var(--accent-soft); padding-left: 10px; }
.mini-meta { font-size: 13px; color: var(--muted); }
.mini-title { font-weight: 700; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13px; color: var(--text);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip.add { color: var(--accent); border-style: dashed; }
.chip.outline { border-color: var(--accent); color: var(--accent); font-weight: 600; border-radius: 8px; }
.chip.plain { border-color: transparent; color: var(--text-2); }
.mini-import { align-items: flex-start; }
.jl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jl-list li { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.jl-date { flex: 0 0 48px; font-size: 12px; font-weight: 600; color: var(--muted); }
.jl-name { font-family: var(--serif); color: var(--text); }
.otd { background: var(--tint); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.otd-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mini-import .fake-btn { margin-top: 6px; }
.import-file { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.doc-icon {
  flex: 0 0 22px; height: 28px; border-radius: 4px; border: 2px solid var(--accent);
  background: linear-gradient(var(--accent) 0 0) 4px 7px / 10px 2px no-repeat,
              linear-gradient(var(--accent) 0 0) 4px 12px / 10px 2px no-repeat,
              linear-gradient(var(--accent) 0 0) 4px 17px / 6px 2px no-repeat;
}

/* Privacy */
.privacy { padding: 128px 0; }
.narrow-center { max-width: 760px; text-align: center; }
.privacy h2, .pricing h2, .faq h2 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.02em; }
.privacy h2 { margin-bottom: 24px; }
.privacy p { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); }
.privacy p + p { margin-top: 10px; }

/* Pricing */
.pricing { padding: 104px 0; background: var(--bg-alt); }
.pricing h2 { text-align: center; }
.section-lead { font-size: 18px; color: var(--text-2); margin-top: 14px; text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 48px auto 0; max-width: 780px; }
.plan {
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
}
.plan-main { border: 2px solid var(--accent); }
.plan h3 { font-size: 17px; color: var(--text-2); }
.price { margin-top: 6px; }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.per { color: var(--muted); font-size: 16px; }
.price-alt { color: var(--text-2); font-size: 15px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plans-note { text-align: center; margin-top: 20px; }

/* FAQ */
.faq { padding: 104px 0 64px; }
.faq .narrow { max-width: 768px; }
.faq h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 17px; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 26px; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); top: 30px; }
details p { padding: 0 0 20px; color: var(--text-2); }

/* Footer */
.site-footer { padding: 40px 0; }
.support {
  max-width: 768px; margin: 0 auto; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface);
}
.support h2 { font-size: 16px; margin-bottom: 4px; }
.support p { color: var(--text-2); font-size: 15px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 40px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.footer-bottom .wordmark { font-size: 16px; }
.footer-bottom a, .footer-beta { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .app-window { margin-right: 80px; }
  .app-nav { display: none; }
  .features, .privacy { padding: 88px 0; }
  .pricing, .faq { padding-top: 80px; }
}
@media (max-width: 720px) {
  .section-nav { display: none; }
  .header-signin, .header-note { margin-left: auto; }
  .feature-grid { grid-template-columns: 1fr; gap: 56px; }
  .plans { grid-template-columns: 1fr; }
  .shot { padding-bottom: 0; }
  .app-window { margin-right: 0; }
  .phone { position: relative; width: auto; max-width: 320px; margin: -120px 12px 0 auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .shot { margin-top: 44px; }
  .app-main { padding: 20px 16px; }
  .sheet { padding: 18px 18px 12px; }
  .app-date { font-size: 20px; }
  .entry-body + .entry-body { display: none; }
  .phone { margin: -96px 0 0 auto; border-radius: 26px; max-width: 290px; }
  .pic { padding: 28px 16px; min-height: 0; }
  .plan { padding: 24px; }
  .footer-bottom a, .footer-beta { margin-left: 0; }
}
