/* moxbook.com: calm, spacious, type-led (inspired by the clarity of
   apple.com, not a copy). The system font is SF Pro on Apple devices,
   Segoe UI on Windows and Roboto on Android: crisp everywhere, nothing to
   download. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --card: #ffffff;
  --accent: #5b3df5;
  --accent-text: #ffffff;
  --link: #4a2fe0;
  --nav: rgba(255, 255, 255, 0.78);
  --phone: #1d1d1f;
  --danger: #c62828;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #424245;
    --card: #1d1d1f;
    --accent: #7c66ff;
    --accent-text: #ffffff;
    --link: #a596ff;
    --nav: rgba(22, 22, 23, 0.78);
    --phone: #3a3a3c;
    --danger: #ff6b6b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* Navigation: thin, translucent, always there. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.nav .container { display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--text); opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav .pill { margin-left: 4px; }
/* Language chooser: globe + current language, opens a small list. */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 10px; border-radius: 980px;
  color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: color-mix(in srgb, var(--text) 8%, transparent); }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; z-index: 60;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.35);
}
.lang-panel a { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 10px; color: var(--text); font-size: 15px; }
.lang-panel a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-panel a.on { font-weight: 600; }
.lang-panel a.on::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }

.nav-menu { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 22px; height: 22px; display: block; color: var(--text); }
.nav-menu[open] .menu-panel { display: block; }
.menu-panel {
  display: none; position: absolute; left: 0; right: 0; top: 52px;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 22px 22px;
}
.menu-panel a { display: block; padding: 14px 0; font-size: 24px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.menu-panel a:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .nav .container { gap: 6px; }
  .nav-links { display: none; }
  .lang-menu { margin-left: auto; }
  .nav-menu { display: block; }
  .nav .pill.desktop { display: none; }
}

/* Buttons and links */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px; border-radius: 980px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-text);
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.pill:hover { text-decoration: none; filter: brightness(1.08); }
.pill.small { min-height: 32px; padding: 5px 14px; font-size: 13px; }
.pill.ghost { background: transparent; color: var(--link); border: 1px solid var(--link); }
.more { font-size: 19px; }
.more::after { content: " ›"; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 28px; }

/* Type */
.eyebrow { font-size: 19px; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.display { font-size: clamp(40px, 7.4vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.headline { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.title { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.lede { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.35; color: var(--muted); font-weight: 500; letter-spacing: -0.015em; margin: 18px auto 0; max-width: 680px; }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 14px; }
.center { text-align: center; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
section.tight { padding: 64px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }

.hero { padding: 72px 0 88px; text-align: center; overflow: hidden; }
.hero .phone-wrap { margin-top: 56px; display: flex; justify-content: center; }

/* Phone mock-up, drawn in CSS so it's crisp and translatable. */
.phone {
  width: 300px; border-radius: 48px; padding: 12px; background: var(--phone);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
}
.phone .screen { border-radius: 38px; background: #f5f5f7; color: #1d1d1f; overflow: hidden; height: 560px; padding: 54px 18px 18px; position: relative; text-align: left; }
.phone .island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; }
.phone .salon { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.phone .salon .logo { width: 40px; height: 40px; border-radius: 11px; background: #b23a48; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.phone .salon b { display: block; font-size: 16px; }
.phone .salon span { font-size: 12px; color: #6e6e73; }
.phone .big { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1.5px solid #e5e5ea; margin-bottom: 10px; font-weight: 700; font-size: 17px; }
.phone .big small { display: block; font-weight: 500; font-size: 12px; color: #6e6e73; }
.phone .big.primary { background: #b23a48; border-color: #b23a48; color: #fff; }
.phone .big.primary small { color: rgba(255,255,255,.8); }
.phone .big svg { width: 28px; height: 28px; flex: none; }
.phone .call { margin-top: 14px; text-align: center; padding: 12px; border-radius: 14px; border: 1.5px solid #b23a48; color: #b23a48; font-weight: 600; font-size: 15px; }
.phone.flat { box-shadow: 0 24px 50px -28px rgba(0,0,0,.4); }

/* Home-screen icons row */
.homescreen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; padding: 6px 0; }
.homescreen .app { text-align: center; font-size: 10px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.homescreen .app i { display: block; width: 50px; height: 50px; margin: 0 auto 5px; border-radius: 13px; background: rgba(255,255,255,.22); }
.homescreen .app.mine i { background: #b23a48; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 18px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.wallpaper { background: linear-gradient(160deg, #5b3df5, #b23a48) !important; color: #fff !important; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step { background: var(--card); border-radius: 28px; padding: 34px 28px; text-align: left; }
section.alt .step { background: var(--card); }
section:not(.alt) .step { background: var(--bg-alt); }
.step .num { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows: text + visual */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .visual { order: -1; }
.feature p { color: var(--muted); font-size: 19px; margin: 0; }
.feature .visual { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .feature.flip .visual { order: 0; }
}

/* Small UI cards used as visuals */
.mock-card { width: 100%; max-width: 360px; background: var(--card); border-radius: 22px; padding: 20px; box-shadow: 0 20px 50px -28px rgba(0,0,0,.35); text-align: left; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.mock-card .tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 8px; }
.mock-card .who { font-weight: 700; font-size: 18px; }
.mock-card .when { color: var(--muted); font-size: 15px; margin: 2px 0 12px; }
.mock-card .note { background: var(--bg-alt); border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }
.mock-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-card .btn { text-align: center; padding: 11px; border-radius: 12px; font-weight: 600; font-size: 15px; background: var(--bg-alt); color: var(--text); }
.mock-card .btn.go { background: var(--accent); color: var(--accent-text); }
.mock-card .btn.wide { grid-column: 1 / -1; }

.notif { width: 100%; max-width: 360px; display: flex; gap: 12px; align-items: flex-start; text-align: left; background: color-mix(in srgb, var(--card) 88%, transparent); border-radius: 22px; padding: 14px 16px; box-shadow: 0 20px 50px -28px rgba(0,0,0,.4); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.notif + .notif { margin-top: 12px; }
.notif .ico { width: 38px; height: 38px; border-radius: 10px; background: #b23a48; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.notif b { font-size: 15px; }
.notif .t { float: right; color: var(--muted); font-size: 13px; font-weight: 400; }
.notif p { margin: 2px 0 0; font-size: 15px; color: var(--text); }
.stack-v { width: 100%; max-width: 360px; }

/* Grid of smaller features */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.tile { background: var(--card); border-radius: 28px; padding: 32px 28px; }
section:not(.alt) .tile { background: var(--bg-alt); }
.tile svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 16px; }
.tile h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); }
.soon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; margin-left: 6px; vertical-align: 3px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

/* Big statement band */
.statement { text-align: center; }
.statement .headline span { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 44px auto 0; max-width: 820px; }
.plan { background: var(--card); border-radius: 28px; padding: 36px 32px; text-align: left; border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); display: flex; flex-direction: column; }
section:not(.alt) .plan { background: var(--bg-alt); border-color: transparent; }
.plan.featured { outline: 2px solid var(--accent); }
.plan h3 { font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.plan .for { color: var(--muted); margin: 4px 0 20px; }
.plan .price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan .per { color: var(--muted); font-size: 15px; margin: 8px 0 24px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .pill { width: 100%; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-size: 19px; font-weight: 600; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: 17px; }

/* Forms (sign-up / sign-in) */
.form-card { max-width: 560px; margin: 36px auto 0; background: var(--bg-alt); border-radius: 28px; padding: 32px 28px; text-align: left; }
.form-card label { display: block; font-weight: 600; margin: 18px 0 6px; font-size: 15px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card .opt { font-weight: 400; color: var(--muted); }
.form-card input, .form-card select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 17px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.form-card input:focus, .form-card select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form-card .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.form-card .pill { width: 100%; margin-top: 24px; min-height: 52px; font-size: 18px; }
.addr { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.addr input { border: 0 !important; border-radius: 0 !important; min-width: 0; }
.addr span { padding: 0 14px; color: var(--muted); white-space: nowrap; font-size: 15px; }
.addr:focus-within { outline: 2px solid var(--accent); }
.addr input:focus { outline: 0 !important; }
.alert { max-width: 560px; margin: 24px auto 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 500; text-align: left; }

/* Legal pages */
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 8px; }
.legal p { font-size: 17px; margin: 0 0 12px; }
.legal .lede { margin-top: 24px; }

/* Footer */
footer.site { background: var(--bg-alt); color: var(--muted); font-size: 13px; padding: 28px 0 40px; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer.site a { color: var(--muted); }
footer.site a.on { color: var(--text); font-weight: 600; }
footer.site .langs { margin-left: auto; display: flex; gap: 16px; }
footer.site nav { display: flex; gap: 20px; }
