/* Berth site. Base: a macOS app on white (Sleeve-like). One warm accent: coral from the app icon. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #0d0f12;
  --ink-2: #3a3f47;
  --muted: #6b7079;
  --line: #e5e7eb;
  --coral: #ff6b4a;
  --coral-ink: #d9441f;
  --harbor-1: #2c5d85;
  --harbor-2: #0e1f33;
  --yes: #15803d;
  --btn-dark: #0d0f12;
  --btn-dark-ink: #ffffff;
  --btn-light: #f3f4f6;
  --shadow-window: 0 0 0 1px rgba(0,0,0,.08), 0 24px 48px -16px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.12);
  --shadow-card: 0 10px 15px -3px rgba(0,0,0,.06), 0 4px 6px -4px rgba(0,0,0,.06);
  --radius-card: 24px;
  --radius-btn: 12px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f12; --bg-alt: #15181d; --surface: #1a1d23; --ink: #f2f3f5; --ink-2: #c9ccd2; --muted: #969ba5;
    --line: #2a2e36; --btn-dark: #f2f3f5; --btn-dark-ink: #0d0f12; --btn-light: #23272e; --yes: #4ade80;
    --coral-ink: #ff8a6e; --shadow-card: 0 0 0 1px rgba(255,255,255,.06); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f12; --bg-alt: #15181d; --surface: #1a1d23; --ink: #f2f3f5; --ink-2: #c9ccd2; --muted: #969ba5;
  --line: #2a2e36; --btn-dark: #f2f3f5; --btn-dark-ink: #0d0f12; --btn-light: #23272e; --yes: #4ade80;
  --coral-ink: #ff8a6e; --shadow-card: 0 0 0 1px rgba(255,255,255,.06); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; text-wrap: balance; }
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
@media (min-width: 720px) { h1 { font-size: 60px; } h2 { font-size: 42px; } }
@media (min-width: 1080px) { h1 { font-size: 68px; } }
p { margin: 0; }
kbd { font: 600 12px/1 var(--font); display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); color: var(--ink-2); }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--coral) 70%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; text-decoration: none; }
.nav__links { display: none; gap: 4px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.nav__links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav__links { display: flex; } .nav .btn { margin-left: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius-btn); font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s cubic-bezier(.2,.9,.25,1), background-color .18s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--btn-dark); color: var(--btn-dark-ink); border-color: rgba(0,0,0,.2); }
.btn--dark:hover { background: color-mix(in srgb, var(--btn-dark) 86%, var(--coral)); }
.btn--light { background: var(--btn-light); color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--line); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { padding: 56px 0 72px; text-align: center; }
@media (min-width: 720px) { .hero { padding: 56px 0 96px; } }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 36px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); font-size: 14px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 25%, transparent); }
.lede { max-width: 680px; font-size: 18px; color: var(--muted); }
@media (min-width: 720px) { .lede { font-size: 20px; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hint { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hint kbd { margin: 0 1px; }

/* Demo desktop */
.desk { position: relative; height: 380px; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-window); outline: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(159,216,255,.45), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(63,193,176,.35), transparent 60%),
    linear-gradient(160deg, var(--harbor-1), var(--harbor-2)); }
@media (min-width: 720px) { .desk { height: 400px; } }
.menubar { position: absolute; inset: 0 0 auto; height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; font-size: 13px; color: #fff; background: rgba(10,22,38,.28); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 3; }
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 16px; }
.menubar__left span { opacity: .9; }
.mb-profile { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.mb-profile:hover, .mb-profile[aria-expanded="true"] { background: rgba(255,255,255,.2); }
.menu { position: absolute; top: 28px; right: 60px; min-width: 210px; padding: 5px; border-radius: 10px; text-align: left; color: #1d1d1f; background: rgba(246,246,248,.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 10px 30px rgba(0,0,0,.25); transform-origin: top right; animation: pop .16s cubic-bezier(.2,.9,.25,1); }
.menu h4 { margin: 4px 10px 2px; font-size: 11px; font-weight: 600; color: #86868b; }
.menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 5px 10px; border: 0; border-radius: 6px; background: none; font: 13px/1.3 var(--font); color: inherit; cursor: pointer; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: #0a64d8; color: #fff; outline: none; }
.menu .check { width: 12px; }
.menu .key { margin-left: auto; opacity: .55; font-size: 12px; }
.menu hr { border: 0; border-top: 1px solid rgba(0,0,0,.1); margin: 5px 8px; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

.hud { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.96); padding: 12px 22px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 17px; background: rgba(255,255,255,.18); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.25,1); }
.hud.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.dock { --t: 44px; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 6px; padding: 7px; max-width: calc(100% - 24px); border-radius: 20px; background: rgba(255,255,255,.2); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 10px 30px rgba(0,0,0,.2); transition: width .3s; overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .dock { --t: 56px; bottom: 18px; border-radius: 24px; padding: 8px; } }
.tile { position: relative; flex: none; width: var(--t); height: var(--t); transform-origin: bottom center; transition: transform .22s cubic-bezier(.2,.9,.25,1); animation: rise .38s cubic-bezier(.2,.9,.25,1) both; animation-delay: calc(var(--i) * 28ms); }
.tile img { width: 100%; height: 100%; }
.tile.app.on::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.85); }
.tile.spacer { width: calc(var(--t) * .4); }
.tile.sep { width: 1px; height: calc(var(--t) * .7); align-self: center; background: rgba(255,255,255,.35); margin: 0 3px; }
@media (hover: hover) {
  .tile.app:hover, .tile.folder:hover { transform: scale(1.22); z-index: 1; }
  .tile.app:hover + .tile.app, .tile.app:has(+ .tile.app:hover) { transform: scale(1.08); }
}
.tile .tip { position: absolute; left: 50%; bottom: calc(100% + 16px); transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; font-size: 11px; white-space: nowrap; color: #1d1d1f; background: rgba(246,246,248,.9); opacity: 0; pointer-events: none; transition: opacity .15s; }
.tile:hover .tip { opacity: 1; }
.tile.folder svg { width: 100%; height: 100%; }
.tile.folder text { font: 800 22px var(--font); fill: #fff; }
.w { flex: none; height: var(--t); border-radius: calc(var(--t) * .26); background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.4); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.1; padding: 0 10px; border: 0; font-family: var(--font); animation: rise .38s cubic-bezier(.2,.9,.25,1) both; animation-delay: calc(var(--i) * 28ms); }
.w b { font-size: calc(var(--t) * .3); font-weight: 650; font-variant-numeric: tabular-nums; }
.w small { font-size: calc(var(--t) * .19); opacity: .8; font-weight: 500; }
.w--2 { width: calc(var(--t) * 2 + 6px); }
.w--3 { width: calc(var(--t) * 3 + 12px); align-items: flex-start; }
.w--note { background: linear-gradient(#ffed9e, #fcdb73); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); color: #523d05; align-items: flex-start; text-align: left; }
.w--note b { font-size: calc(var(--t) * .2); font-weight: 600; line-height: 1.3; }
button.w { cursor: pointer; }
.w .row { display: flex; align-items: center; gap: 8px; text-align: left; }
.w .stack { display: flex; flex-direction: column; gap: 2px; }
.w .bar { width: 3px; height: calc(var(--t) * .55); border-radius: 2px; background: var(--coral); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.9); } }

/* Sections */
.section, .band { padding: 80px 0; }
@media (min-width: 720px) { .section, .band { padding: 112px 0; } }
.band { background: var(--bg-alt); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--coral-ink); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.sub { margin-top: 16px; max-width: 620px; font-size: 18px; color: var(--muted); }

.grid2 { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 24px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-card); }
@media (min-width: 720px) { .card { padding: 32px 36px; } }
.card p { margin-top: 10px; color: var(--muted); }
.card__art { height: 180px; margin: -8px -8px 24px; border-radius: 16px; display: grid; place-items: center; align-content: center; gap: 14px; overflow: hidden; }
.art-native { background: linear-gradient(160deg, #e8eef5, #cfdbe8); }
.art-custom { background: linear-gradient(160deg, var(--harbor-1), var(--harbor-2)); }
.mini-dock, .glass-dock { display: flex; gap: 6px; padding: 7px; border-radius: 16px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 6px 16px rgba(20,40,70,.15); }
.mini-dock--alt { opacity: .55; transform: scale(.88); }
.mini-dock i, .glass-dock i { width: 34px; height: 34px; border-radius: 9px; background: var(--c); }
.mini-dock i.sp { width: 12px; background: none; }
.glass-dock { --t: 40px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.glass-dock i { width: 40px; height: 40px; border-radius: 10px; }
.glass-dock .w { animation: none; height: 40px; font-size: 14px; font-weight: 650; width: auto; padding: 0 12px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--coral) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23d9441f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }

.widgets { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.widgets li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--bg-alt); }
.widgets .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--coral-ink); }
.widgets .ic svg { width: 20px; height: 20px; }
.widgets b { display: block; font-weight: 650; }
.widgets span { font-size: 14px; color: var(--muted); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ways { margin: 32px 0 0; display: grid; gap: 18px; }
.ways div { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line); }
.ways dt { font-weight: 700; }
.ways dd { margin: 0; color: var(--muted); }
.term { border-radius: 16px; overflow: hidden; background: #111418; color: #e6e8eb; box-shadow: var(--shadow-window); min-width: 0; }
.term__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #1b1f25; font-size: 12px; color: #8a9099; }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin: 0 auto; transform: translateX(-24px); }
.term pre { margin: 0; padding: 20px; overflow-x: auto; font: 13.5px/1.7 var(--mono); }
.term .c { color: #7d8590; }
.term .p { color: var(--coral); }

.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; font-weight: 700; background: var(--bg-alt); }
.compare thead th:nth-child(2) { color: var(--coral-ink); }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 46%; }
.compare td.y { color: var(--yes); font-weight: 600; }
.compare td.n { color: var(--muted); }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 720px; }

.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

.final { padding: 112px 0; text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final .btn { margin-top: 12px; }
.fine { font-size: 14px; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.hide-sm { display: none; }
@media (min-width: 600px) { .hide-sm { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Small phones: let cards shrink and scale the illustrations down. */
.card { min-width: 0; }
@media (max-width: 400px) {
  .glass-dock, .mini-dock { transform: scale(.82); }
  .mini-dock--alt { transform: scale(.7); }
}

.w .ring { width: 20px; height: 20px; flex: none; }
.w .ring circle { fill: none; stroke-width: 2.5; }
.w .ring .bg { stroke: rgba(255,159,10,.3); }
.w .ring .fg { stroke: #ff9f0a; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1s linear; }
.w .ring path { fill: #ff9f0a; }
