/* Emblara — one stylesheet for all pages. Apple-like: black / white / light grey, large type, colour only in the work. */
:root {
  --ink: #1d1d1f; --ink2: #6e6e73; --ink3: #86868b; --line: #d2d2d7; --soft: #f5f5f7; --white: #fff; --link: #0066cc;
  --r: 18px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; height: 52px; display: flex; align-items: center; gap: 28px; padding: 0 max(22px, calc((100vw - 980px) / 2)); background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); font-size: 13px; }
.nav .logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.nav .logo:hover { text-decoration: none; }
.nav .links { display: flex; gap: 26px; flex: 1; }
.nav .links a { color: var(--ink); opacity: 0.8; }
.nav .links a:hover { opacity: 1; text-decoration: none; }
.nav .links a.on { opacity: 1; font-weight: 500; }
.nav .meta { color: var(--ink2); }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 980px; border: 0; background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; transition: background 0.2s, opacity 0.2s; }
.pill:hover { background: #000; text-decoration: none; }
.pill.light { background: var(--soft); color: var(--ink); }
.pill.light:hover { background: #e8e8ed; }
.pill.small { height: 34px; padding: 0 16px; font-size: 14px; }
.pill:disabled { opacity: 0.35; cursor: default; }
.text-btn { background: none; border: 0; color: var(--link); font-size: 17px; padding: 6px 0; }
.text-btn:hover { text-decoration: underline; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: #e8e8ed; }

/* segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #ebebf0; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 500; }

/* type scale */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ink2); margin: 0 0 8px; }
.h-hero { font-size: clamp(44px, 7vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.h-1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.h-2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--ink2); margin: 16px 0 0; font-weight: 400; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.band { padding: 120px 0; }
.band.grey { background: var(--soft); }
.center { text-align: center; }

/* home */
.hero { padding: 88px 0 40px; text-align: center; }
.hero .cta { margin-top: 32px; display: flex; gap: 20px; justify-content: center; align-items: center; }
.hero-canvas { display: block; margin: 56px auto 0; width: min(520px, 90vw); aspect-ratio: 4 / 5; border-radius: 28px; background: var(--soft); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile { background: var(--white); border-radius: var(--r); padding: 28px 24px 24px; text-align: center; }
.band.grey .tile { background: var(--white); }
.tile canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 12px; }
.tile h3 { margin: 18px 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--ink2); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.phone { width: min(300px, 70vw); aspect-ratio: 9 / 16; border-radius: 36px; background: #000; padding: 10px; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.phone canvas { width: 100%; height: 100%; display: block; border-radius: 28px; }
.footer { padding: 40px 0 60px; color: var(--ink3); font-size: 12px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: var(--ink2); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.plan { background: var(--soft); border-radius: var(--r); padding: 32px 28px; display: flex; flex-direction: column; }
.plan.hot { background: var(--ink); color: #fff; }
.plan.hot .muted { color: #a1a1a6; }
.plan h3 { margin: 0; font-size: 24px; font-weight: 600; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 2px; }
.plan .price small { font-size: 17px; font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.plan li { padding: 7px 0; border-top: 1px solid rgba(128, 128, 128, 0.18); font-size: 15px; }
.plan.hot .pill { background: #fff; color: var(--ink); }
.muted { color: var(--ink2); }
.costs { margin: 56px auto 0; max-width: 560px; text-align: left; font-size: 15px; }
.costs div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }

/* create: brief */
.screen { display: none; }
.screen.on { display: block; }
.brief { min-height: calc(100vh - 52px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 22px 80px; text-align: center; }
.brief .field { width: min(720px, 100%); border: 0; border-bottom: 1px solid var(--line); outline: none; background: none; text-align: center; padding: 8px 0 10px; transition: border-color 0.2s; }
.brief .field:focus { border-color: var(--ink); }
.brief .name { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; }
.brief .what { margin-top: 18px; font-size: clamp(19px, 2.4vw, 26px); color: var(--ink); }
.brief .field::placeholder { color: #c7c7cc; }
.brief .seg { margin-top: 36px; }
.brief .pill { margin-top: 36px; min-width: 180px; }
.brief .cost { margin-top: 12px; font-size: 13px; color: var(--ink3); min-height: 18px; }

/* create: concepts */
.concepts-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 22px 80px; }
.concepts-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
.concept { border: 0; padding: 0; border-radius: 22px; overflow: hidden; background: var(--soft); aspect-ratio: 1; position: relative; transition: transform 0.25s, box-shadow 0.25s; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); }
.concept:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 18px 40px -24px rgba(0, 0, 0, 0.35); }
.concept:hover { transform: scale(1.01); }
.concept canvas { width: 100%; height: 100%; display: block; }

/* create: studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 52px); }
.studio-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; }
.stage { display: flex; justify-content: center; align-items: center; padding: 0 22px; }
.stage canvas { display: block; border-radius: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 48px -28px rgba(0, 0, 0, 0.3); background: #fff; }
.bar { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 18px 22px 28px; flex-wrap: wrap; }
.track { position: relative; width: min(420px, 60vw); height: 28px; display: flex; align-items: center; }
.track input { width: 100%; accent-color: var(--ink); }
.ticks { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.ticks i { position: absolute; top: 4px; width: 2px; height: 6px; background: var(--ink3); border-radius: 1px; }
.time { font: 500 13px var(--mono); color: var(--ink3); min-width: 42px; }

/* drawer + sheets */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); z-index: 41; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto; padding: 22px 26px 40px; }
.drawer.on { transform: none; }
.drawer h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 18px; }
.drawer h4 { font-size: 13px; font-weight: 600; color: var(--ink2); margin: 26px 0 10px; text-transform: none; }
.drawer .close { position: absolute; top: 18px; right: 18px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatches button { aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; position: relative; padding: 0; }
.swatches button.on { border-color: var(--ink); }
.swatches button i { position: absolute; inset: 28%; border-radius: 50%; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.select, .input { width: 100%; height: 40px; border-radius: 10px; border: 0; background: var(--soft); padding: 0 12px; font-size: 15px; outline: none; }
.custom { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.custom.on { display: grid; }
.custom label { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 10px; padding: 6px 10px; font-size: 13px; color: var(--ink2); }
.custom input[type=color] { width: 26px; height: 26px; border: 0; padding: 0; background: none; border-radius: 6px; }
input[type=range] { width: 100%; accent-color: var(--ink); }
.sheet { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -48%); opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 42; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 22px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.4); }
.sheet.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.sheet h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -0.02em; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.opt b { font-weight: 600; display: block; }
.opt span { color: var(--ink2); font-size: 14px; }
.progress { height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; margin-top: 10px; display: none; }
.progress.on { display: block; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.15s; }
video.preview { width: 100%; border-radius: 14px; background: #000; margin-top: 14px; max-height: 50vh; display: block; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 980px; font-size: 15px; opacity: 0; transition: all 0.25s; z-index: 60; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.lib { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lib button { border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--soft); text-align: left; }
.lib canvas { width: 100%; aspect-ratio: 1; display: block; }
.lib span { display: block; padding: 8px 10px; font-size: 13px; }

@media (max-width: 760px) {
  .trio, .plans, .split { grid-template-columns: 1fr; }
  .grid4 { gap: 12px; }
  .nav .links { gap: 16px; }
  .band { padding: 80px 0; }
}

/* accounts */
.nav .acct { color: var(--ink); opacity: 0.8; }
.nav .acct:hover { opacity: 1; text-decoration: none; }
.sheet.narrow { width: min(400px, calc(100vw - 32px)); text-align: center; }
.sheet.narrow h2 { margin-bottom: 8px; }
.sheet.narrow .muted { margin: 0 0 22px; }
.pill.google { width: 100%; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #d2d2d7; }
.pill.google:hover { background: var(--soft); }
.fine { font-size: 12px; color: var(--ink3); margin: 16px 0 0; }
.fine a { color: inherit; text-decoration: underline; }
.share { padding: 18px 0 2px; border-top: 1px solid var(--line); }
.share b { display: block; font-weight: 600; margin-bottom: 10px; }
.share .text-btn { font-size: 15px; padding: 0; }
.pill.busy { opacity: 0.6; }
.acct-page { max-width: 680px; margin: 0 auto; padding: 56px 22px 96px; }
.acct-page h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 4px; }
.acct-page .who { color: var(--ink2); margin: 0 0 36px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
.tile { background: var(--soft); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tile .big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.tile .sub { color: var(--ink2); font-size: 14px; }
.tile .row { margin-top: 10px; justify-content: flex-start; }
.tile .row > * { flex: none; }
.acct-page h3 { font-size: 13px; font-weight: 600; color: var(--ink2); margin: 32px 0 8px; }
.list { border-top: 1px solid var(--line); }
.list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list > div span:last-child { color: var(--ink2); white-space: nowrap; }
.list .pos { color: #1d8a4a; }
.list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--ink2); }
.tag.approved { background: #e3f5ea; color: #1d6b3d; } .tag.rejected { background: #fdecea; color: #a1281c; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
/* admin */
.admin { max-width: 1080px; margin: 0 auto; padding: 32px 22px 80px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th { text-align: left; font-weight: 600; color: var(--ink2); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.admin td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin td.url { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin .bar2 { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.admin .stats { display: flex; gap: 28px; margin: 6px 0 22px; color: var(--ink2); font-size: 14px; }
.admin .stats b { color: var(--ink); font-size: 22px; display: block; }
.tile .pill.light { background: #fff; }
.tile .pill.light:hover { background: #e8e8ed; }
.admin .text-btn { font-size: 14px; padding: 0; }
/* consent banner (EEA / UK / CH visitors) */
.consent { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; width: min(640px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(180%) blur(20px); border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 40px -20px rgba(0, 0, 0, 0.35); font-size: 14px; }
.consent span { flex: 1; color: var(--ink2); }
.consent a { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) { .consent { flex-wrap: wrap; } .consent span { flex-basis: 100%; } }
/* legal pages */
.legal { max-width: 680px; margin: 0 auto; padding: 64px 22px 80px; font-size: 17px; line-height: 1.6; }
.legal h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--ink3); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.legal p, .legal li { color: #333336; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal code { font: 14px var(--mono); background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.legal .text-btn { font-size: 17px; padding: 0; }
