/* Medorya website — "calm clinical luxury", same tokens as the app */
/* Newsreader (SIL Open Font License 1.1), self-hosted so visitors' IPs are not sent to Google. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/newsreader-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/newsreader-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: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/newsreader-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; }

:root {
  --bg: #F5F3EF;
  --bg-2: #ECE9E3;
  --card: #FFFFFF;
  --ink: #1B1F1E;
  --ink-2: #4A5251;
  --ink-3: #6B7271;
  --line: rgba(27, 31, 30, 0.10);
  --teal: #086B70;
  --teal-ink: #FFFFFF;
  --teal-soft: #E3EFEF;
  --green: #18805F;
  --orange: #A44A00;
  --orange-soft: #FBEBDD;
  --shadow: 0 1px 2px rgba(20, 30, 30, .06), 0 12px 32px -12px rgba(20, 40, 40, .18);
  --radius: 22px;
  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1413;
    --bg-2: #161D1C;
    --card: #1B2322;
    --ink: #EEF2F1;
    --ink-2: #BAC4C2;
    --ink-3: #8D9897;
    --line: rgba(238, 242, 241, 0.12);
    --teal: #3FB3B5;
    --teal-ink: #062A2B;
    --teal-soft: #15302F;
    --green: #4CC08F;
    --orange: #F0A060;
    --orange-soft: #3A2616;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
@media (max-width: 420px) { .nav { gap: 16px; } .brand { font-size: 18px; } }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 760px) { .nav a.opt { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--teal-soft); color: var(--teal); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.appstore { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 9px 18px 9px 14px; text-decoration: none; min-height: 52px; }
.appstore svg { width: 26px; height: 26px; fill: #fff; }
.appstore small { display: block; font-size: 11px; line-height: 1.1; opacity: .85; }
.appstore b { display: block; font-size: 19px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
@media (prefers-color-scheme: dark) { .appstore { background: #fff; color: #000; } .appstore svg { fill: #000; } }

/* Banner managed from admin */
.banner { background: var(--teal); color: var(--teal-ink); font-size: 15px; text-align: center; padding: 10px 16px; }
.banner a { color: inherit; font-weight: 600; }
.banner[hidden] { display: none; }

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.h3 { font-size: 21px; font-weight: 650; line-height: 1.25; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); line-height: 1.5; }
.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.muted { color: var(--ink-3); }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .lead { margin: 22px 0 30px; max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone {
  width: 270px; border-radius: 46px; padding: 9px; background: #101414;
  box-shadow: 0 30px 60px -20px rgba(10, 40, 40, .35), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 603 / 1311; object-fit: cover; background: var(--bg-2); }
.phones .phone.back { position: absolute; transform: translate(-46%, 34px) rotate(-6deg) scale(.88); opacity: .96; }
.phones .phone.front { position: relative; transform: translateX(22%); }
@media (max-width: 1000px) {
  .phones .phone.back { display: none; }
  .phones .phone.front { transform: none; width: 250px; }
  .phones { min-height: 0; }
}
@media (max-width: 760px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .phones .phone.front { width: 240px; }
}

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0 0; }
.trust div { background: var(--card); padding: 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.trust b { display: block; color: var(--ink); font-size: 16px; }
.trust svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--teal); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .h2 { margin: 10px 0 14px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: 250px; }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-2); }
.feature li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.5' fill='none' stroke='%23086B70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.feature p { color: var(--ink-2); margin: 14px 0 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-media { order: 0; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .h3 { margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.icon-chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.icon-chip svg { width: 24px; height: 24px; }

/* Privacy band */
.privacy-band { background: var(--teal); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.privacy-band .h2 { color: #fff; }
.privacy-band p { color: rgba(255,255,255,.86); }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-band li { background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; font-size: 16px; }
.privacy-band li b { display: block; }
.privacy-band a { color: #fff; }
@media (prefers-color-scheme: dark) { .privacy-band { background: #0B4A4D; } }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; padding: 32px 22px; border-radius: 24px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 2px solid transparent; }
.plan.best { border-color: var(--teal); }
.plan .tag { align-self: flex-start; font-size: 13px; font-weight: 650; color: var(--teal); background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.plan .price { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 10px 0 4px; }
.plan .per { color: var(--ink-3); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.plan li { padding: 5px 0; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 18px; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { background: var(--card); border-radius: 16px; padding: 0 22px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* CTA */
.cta-end { text-align: center; padding: 96px 0; }
.cta-end .lead { margin: 14px auto 28px; max-width: 40ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { flex-basis: 100%; font-size: 13px; }

/* Document pages (privacy, terms, support, releases) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.doc .updated { color: var(--ink-3); margin: 12px 0 36px; font-size: 15px; }
.doc h2 { font-size: 23px; font-weight: 650; margin: 44px 0 10px; }
.doc h3 { font-size: 18px; font-weight: 650; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary-box { background: var(--card); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.summary-box h2 { margin-top: 0; font-size: 19px; }
.summary-box ul { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 650; color: var(--ink); background: var(--bg-2); }

/* Releases */
.release { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; }
.pill { font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.pill.upcoming { background: var(--orange-soft); color: var(--orange); }
.release .meta { color: var(--ink-3); font-size: 15px; }
.release p.summary { margin: 12px 0 4px; color: var(--ink); }
.release ul { margin: 10px 0 0; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 12px; }
@media (max-width: 640px) { .support-grid { grid-template-columns: 1fr; } }
