/* Clozo website, design "Untertitel-Gelb": paper, ink, one caption yellow,
   one grotesque. The kit's pages (legal, account, blog) use kit.css with the
   same --kit-* colors from product.json; this file styles the theme and the
   homepage and tunes a few kit parts. */

@font-face { font-family: 'Clozo Grotesk'; src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; 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; }
@font-face { font-family: 'Clozo Grotesk'; src: url('/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Clozo Mono'; src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Clozo Mono'; src: url('/fonts/ibm-plex-mono-600-latin.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --paper: #f5f4ef; --surface: #fff; --ink: #111; --muted: #5c5b57; --line: #dcdad2; --yellow: #ffd21f; --marker: #ffe98a;
  --font: 'Clozo Grotesk', system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  --mono: 'Clozo Mono', ui-monospace, Menlo, Consolas, monospace;
  --kit-font: var(--font);
  --kit-mono: var(--mono);
  --gutter: clamp(16px, 4vw, 40px);
  --r: 8px;
}

* { 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(--paper); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.03em; overflow-wrap: break-word; }
p { margin: 0; }
:lang(ja) h1, :lang(ko) h1, :lang(ja) h2, :lang(ko) h2 { letter-spacing: -.01em; line-height: 1.25; word-break: keep-all; }
/* Korean breaks between words; Japanese between phrases where the browser can (Chrome), never inside a word. */
:lang(ko) :is(h3, p, li, summary, .btn) { word-break: keep-all; }
:lang(ja) :is(h1, h2, h3, summary, .btn) { word-break: auto-phrase; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kicker { font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; background: var(--yellow); color: var(--ink); font: 600 11px/1 var(--mono); letter-spacing: .04em; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 6px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 700 16px/1.1 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--primary { background: var(--yellow); border-color: var(--yellow); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--big { min-height: 56px; padding: 0 26px; font-size: 18px; }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: progress; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 24px/1 var(--font); letter-spacing: -.06em; text-decoration: none; color: var(--ink); }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: 600 13px/1 var(--mono); }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); }
.langs a { display: block; padding: 8px 10px; border-radius: 4px; text-decoration: none; font-size: 15px; }
.langs a:hover, .langs a[aria-current] { background: var(--paper); }
.langs a[aria-current] { font-weight: 700; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 14px 0 0; font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.hero .lead { margin: 22px 0 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero__cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* the demo: a call with Clozo's captions */
.demo { margin: 0; }
.demo__call { position: relative; aspect-ratio: 16 / 11; border-radius: 16px; background: #202124; padding: 12px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0,0,0,.55); }
.demo__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; }
.demo__tile { border-radius: 10px; background: radial-gradient(120% 90% at 30% 20%, #5b5f66, #34373b); display: grid; place-items: center; }
.demo__tile--b { background: radial-gradient(120% 90% at 70% 30%, #4e5a52, #2f3632); }
.demo__tile span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #7b5ea7; color: #fff; font: 500 26px/1 Roboto, var(--font); }
.demo__tile--b span { background: #1e8e3e; }
.demo__pill { position: absolute; top: 22px; right: 22px; padding: 6px 9px; border-radius: 4px; background: var(--yellow); color: var(--ink); font: 600 12px/1 var(--mono); }
.demo__captions { position: absolute; left: 12px; right: 12px; bottom: 14px; display: grid; gap: 6px; }
.cz-line { background: rgba(17,17,17,.86); border-radius: 4px; padding: 9px 14px 11px; border-left: 4px solid transparent; color: #fff; }
.cz-line.now { border-left-color: var(--yellow); }
.cz-who { font: 700 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.cz-orig { margin-top: 5px; font-size: 14px; line-height: 1.38; color: rgba(255,255,255,.68); min-height: 1.38em; }
.cz-tr { margin-top: 3px; font-size: clamp(16px, 1.7vw, 19px); font-weight: 600; line-height: 1.3; min-height: 1.3em; }
.cz-tr.in { animation: fade .35s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.demo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 64px; }
.section h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; max-width: 22ch; }
.section__lead { margin-top: 14px; max-width: 46em; font-size: 18px; color: var(--muted); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink a { color: #fff; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.step__n { font: 600 12px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); }

.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.section--surface .feature { background: var(--paper); }
.feature h3 { font-size: 19px; }
.feature h3::before { content: ''; display: block; width: 26px; height: 6px; margin-bottom: 14px; border-radius: 3px; background: var(--yellow); }
.feature p { color: var(--muted); font-size: 16px; }

.uses { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.use { padding: 22px; border-top: 4px solid var(--ink); background: var(--surface); border-radius: 0 0 var(--r) var(--r); display: grid; gap: 8px; align-content: start; }
.use h3 { font-size: 19px; }
.use p { color: var(--muted); font-size: 16px; }

.compare { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.compare p { margin-top: 18px; font-size: 18px; color: rgba(255,255,255,.78); max-width: 40em; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 18px; font-weight: 700; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ---------- pricing ---------- */
.billing { display: inline-grid; grid-auto-flow: column; margin-top: 28px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.billing button { display: inline-flex; gap: 8px; align-items: center; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
.billing button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.plans { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 18px; }
.plan { padding: 26px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.plan--pro { border: 2px solid var(--ink); box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.plan h3 { font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan__price { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.plan__price span { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan__sub { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.plan ul { margin: 8px 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { width: 100%; }
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.trust li::before { content: '✓ '; color: var(--ink); font-weight: 800; }

/* ---------- FAQ and final call ---------- */
#faq .kit-faq { margin-top: 30px; }
.final { text-align: center; background: var(--yellow); }
.final h2 { margin: 0 auto; max-width: 18ch; }
.final p { margin: 16px auto 28px; max-width: 34em; font-size: 18px; }
.final .btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.final .btn--primary:hover { background: #fff; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 40px var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px 48px; }
.site-footer__brand p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; font-size: 15px; }
.site-footer__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
.site-footer__copy { font-size: 13px; color: var(--muted); }

/* ---------- kit pages in this design ---------- */
.kit-main { padding-top: 48px; }
.kit-btn { border-radius: 6px; }
.kit-box, .kit-legal__box, .kit-cta { border-radius: var(--r); }
.kit-form input:not([type='radio']), .kit-form textarea { border-radius: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero__grid, .compare { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps, .features, .uses, .plans { grid-template-columns: minmax(0, 1fr); }
  .site-header__inner { gap: 10px; }
  .site-header .btn--small { padding: 0 10px; font-size: 13px; }
  .demo__call { aspect-ratio: 4 / 4.2; }
  .demo__tiles { grid-template-columns: 1fr; }
  .demo__tile--b { display: none; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .billing button { padding: 0 12px; }
}

/* Landing page: latest blog posts */
.blog-all { margin-top: 22px; font-weight: 600; }

/* Uninstall page: goodbye and the anonymous reasons form */
.bye .section { padding-top: 64px; }
.bye h1 { margin: 12px 0 14px; font-size: clamp(36px, 6vw, 56px); letter-spacing: -.045em; }
.bye__lead { margin: 0 0 32px; color: var(--muted); font-size: 19px; }
.bye fieldset { margin: 0; padding: 0; border: 0; }
.bye legend { padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 18px; }
.bye__reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bye__reason { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; line-height: 1.35; transition: border-color .15s, box-shadow .15s; }
.bye__reason:hover { border-color: var(--ink); }
.bye__reason input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.bye__reason input::after { content: ''; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.bye__reason input:checked { background: var(--yellow); border-color: var(--ink); }
.bye__reason input:checked::after { opacity: 1; }
.bye__reason:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bye__reason input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bye__comment { display: grid; gap: 8px; margin-top: 28px; font-weight: 700; font-size: 18px; }
.bye__comment textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 400 16px/1.5 var(--font); color: var(--ink); resize: vertical; }
.bye__comment textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bye__note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.bye__error { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--ink); background: var(--marker); font-weight: 600; }
.bye__form .btn { margin-top: 24px; }
.bye__thanks .btn { margin-top: 8px; }
@media (max-width: 640px) { .bye__reasons { grid-template-columns: 1fr; } }
