/* NotesAI website. Colors and type match the app (src/constants/design.ts in projectai-mobile). */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-700.woff2) format("woff2"); }

:root {
  --bg: #f9f8f5;
  --surface: #ffffff;
  --text: #242529;
  --muted: #747570;
  --border: #e4e3dc;
  --accent: #6954d8;
  --accent-hover: #5a46c4;
  --accent-soft: #ece8fb;
  --accent-ink: #5d586c;
  --tile: #f4f3ef;
  --green: #e5eedc; --green-ink: #5c7844;
  --yellow: #f3e9ce; --yellow-ink: #92702d;
  --blue: #e2ebf1; --blue-ink: #4e758e;
  --radius: 16px;
  --wrap: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(249, 248, 245, 0.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .site-nav .optional { display: none; } .site-nav { gap: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { color: var(--text); background: var(--tile); }
.btn svg { width: 20px; height: 20px; }

/* Landing */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--accent-ink); margin: 0 0 30px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (max-width: 820px) { .hero { padding: 44px 0 32px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Phone mockup (screenshot placeholder) */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone { width: 250px; min-width: 0; flex: 0 1 250px; aspect-ratio: 9 / 19; background: var(--surface); border: 1px solid var(--border); border-radius: 34px; padding: 18px 14px; box-shadow: 0 24px 60px -24px rgba(36, 37, 41, 0.25); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone.offset { margin-top: 48px; }
.phone .bar { height: 10px; border-radius: 6px; background: var(--tile); }
.phone .title { font-weight: 600; font-size: 15px; margin: 4px 2px 2px; }
.phone .search { background: var(--tile); border-radius: 12px; padding: 9px 12px; font-size: 12px; color: var(--muted); }
.phone .answer { background: var(--accent-soft); border-radius: 14px; padding: 12px; font-size: 12px; line-height: 1.5; color: var(--accent-ink); }
.phone .answer b { color: var(--accent); display: block; font-size: 11px; margin-bottom: 4px; }
.phone .note { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 12px; }
.phone .note strong { display: block; font-size: 12.5px; margin-bottom: 2px; }
.phone .note span { color: var(--muted); }
.phone .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .tile { border-radius: 12px; padding: 12px 10px; font-size: 12px; font-weight: 600; min-height: 64px; }
.t-purple { background: var(--accent-soft); color: var(--accent); }
.t-green { background: var(--green); color: var(--green-ink); }
.t-yellow { background: var(--yellow); color: var(--yellow-ink); }
.t-blue { background: var(--blue); color: var(--blue-ink); }

/* Sections */
section.block { padding: 56px 0; }
section.block h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; }
section.block .sub { color: var(--muted); margin: 0 0 32px; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { padding-left: 26px; position: relative; margin: 8px 0; color: var(--accent-ink); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.cta { background: var(--accent); color: #fff; border-radius: 24px; padding: 44px 32px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e6e1fa; margin: 0 0 26px; }
.cta .btn-light { border-color: transparent; }

/* Documents (privacy, terms, etc.) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; line-height: 1.3; scroll-margin-top: 80px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: #3b3c40; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 12px; }
.summary h2 { margin-top: 0 !important; font-size: 17px !important; color: var(--accent); }
.summary ul { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; font-size: 15px; }
.toc ol { margin: 6px 0 0; }
.toc a { text-decoration: none; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--tile); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 44px; margin: 14px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 4px; }
details p { margin: 12px 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact-card .email { font-size: 20px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
