/* rekorda.swift.id. One stylesheet, no web fonts (system font stack), dark mode follows the system. */

:root {
  --ink: #17142e;
  --muted: #5a5675;
  --bg: #ffffff;
  --bg-alt: #f5f3fc;
  --card: #ffffff;
  --line: #e4e1f0;
  --brand: #4a3bc4;
  --brand-ink: #3a2ea3;
  --brand-soft: #ece9ff;
  --rec: #f2384f;
  --rec-soft: #ffe3e7;
  --ok: #1f9d55;
  --hero-a: #232f7a;
  --hero-b: #5b1e86;
  --shadow: 0 18px 50px rgba(36, 24, 96, 0.16);
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1effa;
    --muted: #a9a5c4;
    --bg: #0f0d1c;
    --bg-alt: #161329;
    --card: #1c1834;
    --line: #2c2849;
    --brand: #9d93ff;
    --brand-ink: #b9b2ff;
    --brand-soft: #262056;
    --rec: #ff5a6e;
    --rec-soft: #3b1824;
    --ok: #4ccb84;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

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

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.nav { display: none; gap: 22px; margin-left: 14px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { font-weight: 700; font-size: 0.85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.lang-switch:hover { color: var(--ink); border-color: var(--muted); }
@media (min-width: 880px) { .nav { display: flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(0.98); }
.btn-brand { background: var(--rec); color: #fff; }
.btn-brand:hover { color: #fff; background: color-mix(in srgb, var(--rec) 88%, black); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-header .btn { min-height: 38px; padding: 7px 16px; font-size: 0.9rem; }
@media (max-width: 420px) { .site-header .btn-brand .long { display: none; } }

.badge-link { display: inline-block; border-radius: 10px; }
.badge-link img { width: 162px; height: auto; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 70% at 85% 60%, rgba(255, 90, 110, 0.38), transparent 70%),
    linear-gradient(120deg, var(--hero-a), var(--hero-b));
  padding: 56px 0 0;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 8px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero .eyebrow { color: #ffc3cb; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .soft { color: #ffc3cb; display: block; }
.lead { font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 14px; }
.hero-note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); margin: 0; }
.hero-visual { position: relative; display: flex; justify-content: center; align-self: end; padding-top: 34px; }
@media (min-width: 900px) { .hero-visual { padding-top: 0; } }
.hero-visual .phone { width: min(300px, 74vw); margin-bottom: -90px; }
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
  .hero-copy { padding-bottom: 96px; }
  .hero-visual .phone { width: 320px; margin-bottom: -60px; }
}

/* Phone frame */
.phone {
  position: relative; border-radius: 46px; padding: 10px; background: #110f1f;
  box-shadow: 0 0 0 1.5px #2c2846 inset, var(--shadow);
}
.phone img { border-radius: 37px; width: 100%; }
.phone-sm { border-radius: 34px; padding: 7px; }
.phone-sm img { border-radius: 28px; }

/* Live Activity pill, mirrors the app's Dynamic Island/Lock Screen activity */
.island {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px;
  background: #000; color: #fff; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); white-space: nowrap; z-index: 2;
}
.island .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(242, 56, 79, 0.25); }
.island time { font-variant-numeric: tabular-nums; font-weight: 600; color: #ffb3bd; }
.bars { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.bars i { display: block; width: 3px; border-radius: 2px; background: #ff8a99; height: 40%; animation: level 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.2s; height: 70%; }
.bars i:nth-child(3) { animation-delay: -0.5s; height: 100%; }
.bars i:nth-child(4) { animation-delay: -0.7s; height: 55%; }
.bars i:nth-child(5) { animation-delay: -0.35s; height: 80%; }
@keyframes level { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } }
@media (min-width: 900px) { .island { left: -8px; top: 34%; transform: none; } }

/* Waveform divider */
.wave { display: flex; gap: 4px; align-items: center; height: 22px; margin: 4px 0 20px; }
.wave i { width: 4px; border-radius: 2px; background: var(--rec); }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 70%; } .wave i:nth-child(3) { height: 100%; }
.wave i:nth-child(4) { height: 55%; } .wave i:nth-child(5) { height: 85%; } .wave i:nth-child(6) { height: 40%; }
.center .wave { justify-content: center; }

/* Facts strip */
.facts { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.facts strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.facts span { color: var(--muted); font-size: 0.95rem; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 820px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.flow li { text-align: center; }
.flow .phone { width: min(240px, 70vw); margin: 0 auto 22px; }
.flow p { color: var(--muted); }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rec); color: #fff; font-weight: 800; margin-bottom: 10px; }

.feature { display: grid; gap: 36px; align-items: center; padding: 28px 0; }
.feature + .feature { margin-top: 48px; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(280px, 76vw); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-media { order: -1; }
}
.feature-text p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%234a3bc4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%23b9b2ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.fine { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
.center-text { text-align: center; margin-top: 28px; }

/* Lock Screen mock */
.lockscreen {
  width: min(340px, 86vw); border-radius: 40px; padding: 34px 18px 22px; color: #fff; text-align: center;
  background: radial-gradient(70% 60% at 70% 20%, rgba(255, 90, 110, 0.55), transparent 70%), linear-gradient(160deg, #2a2c7e, #4c1f7d 60%, #1b1440);
  box-shadow: var(--shadow);
}
.lockscreen .clock-date { font-size: 0.95rem; font-weight: 600; opacity: 0.85; margin: 0; }
.lockscreen .clock { font-size: 4.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 2px 0 26px; }
.activity { background: rgba(20, 16, 38, 0.72); border-radius: 26px; padding: 16px; text-align: left; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.activity-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.activity-app { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.activity-app img { border-radius: 8px; }
.activity-app small { display: block; font-weight: 600; font-size: 0.8rem; color: #ff9aa7; }
.activity time { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.activity-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.activity-buttons span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-weight: 700; font-size: 0.9rem; }
.activity-buttons span.stop { background: var(--rec); }
.activity-buttons svg { width: 14px; height: 14px; }
.control-row { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
.control-row span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.control-row span.on { background: #fff; }
.control-row svg { width: 24px; height: 24px; }

/* Mixer mock */
.mixer { width: min(380px, 88vw); background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.mixer-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mixer-head b { font-size: 1.05rem; }
.mixer-head small { color: var(--muted); font-weight: 600; }
.track { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.track-name { font-weight: 700; font-size: 0.9rem; }
.track-name small { display: block; color: var(--muted); font-weight: 600; font-size: 0.75rem; }
.clip {
  height: 30px; border-radius: 8px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22' fill='%237a6ff0'%3E%3Crect x='1' y='8' width='3' height='6' rx='1.5'/%3E%3Crect x='7' y='4' width='3' height='14' rx='1.5'/%3E%3Crect x='13' y='1' width='3' height='20' rx='1.5'/%3E%3Crect x='19' y='6' width='3' height='10' rx='1.5'/%3E%3Crect x='25' y='3' width='3' height='16' rx='1.5'/%3E%3Crect x='31' y='9' width='3' height='4' rx='1.5'/%3E%3Crect x='37' y='5' width='3' height='12' rx='1.5'/%3E%3Crect x='43' y='2' width='3' height='18' rx='1.5'/%3E%3Crect x='49' y='7' width='3' height='8' rx='1.5'/%3E%3Crect x='55' y='4' width='3' height='14' rx='1.5'/%3E%3Crect x='61' y='8' width='3' height='6' rx='1.5'/%3E%3Crect x='67' y='3' width='3' height='16' rx='1.5'/%3E%3Crect x='73' y='6' width='3' height='10' rx='1.5'/%3E%3Crect x='79' y='1' width='3' height='20' rx='1.5'/%3E%3Crect x='85' y='5' width='3' height='12' rx='1.5'/%3E%3Crect x='91' y='9' width='3' height='4' rx='1.5'/%3E%3C/svg%3E") 6px center / 96px 22px repeat-x;
}
.track:nth-of-type(3) .clip { background-position: -30px center; margin-right: 18%; }
.track:nth-of-type(4) .clip { background-position: -54px center; margin-left: 22%; }
.track:nth-of-type(5) .clip { background-position: -12px center; }
.track.muted .clip { opacity: 0.4; }
.ms { display: flex; gap: 6px; }
.ms span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.ms span.on-m { background: #f6b73c; color: #3a2600; border-color: transparent; }
.ms span.on-s { background: var(--brand); color: #fff; border-color: transparent; }
.mixdown { margin-top: 14px; display: flex; justify-content: center; padding: 10px; border-radius: 999px; background: var(--rec); color: #fff; font-weight: 800; font-size: 0.9rem; }

/* All features grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }

/* Complaints */
.fixes { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.fix { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
@media (min-width: 760px) { .fix { grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; } }
.fix q { font-weight: 700; quotes: "\201C" "\201D"; color: var(--ink); }
.fix q::before { color: var(--rec); }
.fix p { margin: 0; color: var(--muted); }
.fix p strong { color: var(--ink); }

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.plan.pro { border: 2px solid var(--brand); position: relative; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .price { font-size: 1rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.plan .checks { margin-top: 8px; }
.plan-shot { display: flex; justify-content: center; margin-top: 30px; }
.plan-shot .phone { width: min(240px, 70vw); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; color: #fff; padding: 84px 0; background: radial-gradient(60% 80% at 50% 100%, rgba(255, 90, 110, 0.4), transparent 70%), linear-gradient(120deg, var(--hero-a), var(--hero-b)); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 34em; margin: 0 auto 26px; font-size: 1.1rem; }
.cta .wave { justify-content: center; }
.cta .wave i { background: #ff9aa7; }
.cta-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }

/* Text pages (privacy, terms, support) */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 0; }
.page-head .updated { font-size: 0.92rem; margin-top: 12px; }
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--brand); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 40px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 32px; }
.toc li { margin-bottom: 4px; }
.contact-card { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 44px; }
@media (min-width: 700px) { .contact-card { grid-template-columns: 1fr auto; align-items: center; } }
.contact-card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card .btn-brand { white-space: nowrap; }
.prose .help-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); list-style: none; padding: 0; margin: 0 0 44px; }
.prose .help-grid li { margin: 0; }
.help-grid a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 700; }
.help-grid a span { display: block; color: var(--muted); font-weight: 500; font-size: 0.92rem; margin-top: 2px; }
.help-grid a:hover { border-color: var(--brand); }
.prose .faq { margin: 0; }
kbd { font: inherit; font-weight: 600; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound p { color: var(--muted); }
.notfound .btn-brand { margin: 8px 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 0.95rem; }
.footer-top { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.2fr 2fr; } }
.footer-top p { color: var(--muted); margin-top: 10px; max-width: 26em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; align-content: start; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.legal p { margin: 0 0 6px; }
