/* SwiftLocker website. One dark theme, matching the App Store screenshots. */

:root {
  --bg: #040706;
  --bg-raised: #0a110e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f5f3;
  --muted: rgba(242, 245, 243, 0.66);
  --faint: rgba(242, 245, 243, 0.45);
  --green: #3ddc7a;
  --green-deep: #1fd760;
  --teal: #19b5a0;
  --radius: 24px;
  --gutter: clamp(20px, 5vw, 40px);
  --width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::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(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.accent { color: var(--green); }

.wrap { width: min(var(--width), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--green); color: #04110a; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Header */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 7, 6, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.header .get {
  margin-left: auto; padding: 8px 16px; border-radius: 999px;
  background: var(--green); color: #04110a; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.header .get:hover { background: #5be690; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .header .get { margin-left: 8px; }
}

/* Shared type */

/* Normal case, so names like iCloud and iPad keep their spelling. */
.label {
  display: inline-block; margin-bottom: 14px;
  color: var(--green); font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
}
.lead { color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; }
.section { padding-block: clamp(80px, 12vw, 140px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }

.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }

.text-link { color: var(--green); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */

.hero { position: relative; padding-top: clamp(56px, 9vw, 112px); text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 62%, rgba(31, 215, 96, 0.34), transparent 70%),
    radial-gradient(40% 30% at 85% 10%, rgba(25, 181, 160, 0.16), transparent 70%);
}
.hero h1 { font-size: clamp(48px, 9vw, 96px); letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 24px; }
.hero .lead { max-width: 640px; margin: 0 auto 32px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; list-style: none; }
.pills li {
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font-size: 14px; background: rgba(255, 255, 255, 0.03);
}
.hero-art { margin: clamp(40px, 6vw, 72px) auto 0; width: min(1100px, 100%); }
.hero-art img { margin-inline: auto; }

/* Feature rows: one panel each, the phone in a green glow */

.rows { display: grid; gap: 20px; }
.panel {
  border-radius: 32px; border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(55% 75% at var(--glow-x, 75%) 55%, rgba(31, 215, 96, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.row { display: grid; gap: 8px; align-items: center; padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px) 0; }
.row h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
.row .lead { max-width: 500px; }
.row figure { margin: 0; }
/* The image carries transparent room for the frame's shadow; the negative margins take most of it back. */
.row img { width: min(420px, 100%); margin: 0 auto -6%; }
.row.flip { --glow-x: 25%; }
.tag {
  display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 999px; vertical-align: 3px;
  border: 1px solid rgba(61, 220, 122, 0.45); color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.checks { list-style: none; margin-top: 24px; display: grid; gap: 10px; color: var(--muted); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
@media (min-width: 860px) {
  .row { grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 0; }
  .row > div { padding-bottom: clamp(32px, 5vw, 72px); }
  .row img { margin-top: 24px; }
  .row.flip figure { order: -1; }
}

/* More features */

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}
.card svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 18px; }
.card h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

/* iPad */

.ipad { --glow-x: 70%; display: grid; gap: 24px; align-items: end; padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px) 0; }
.ipad h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
.ipad > div { align-self: center; }
.ipad img { width: min(560px, 100%); margin: 0 auto -8%; }
@media (min-width: 860px) { .ipad { grid-template-columns: 5fr 6fr; gap: 48px; } .ipad > div { padding-bottom: clamp(32px, 5vw, 72px); } }

/* Privacy */

.privacy { position: relative; }
.privacy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 30%, rgba(31, 215, 96, 0.12), transparent 70%);
}
.ledger { display: grid; gap: 16px; }
.ledger .card h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 18px; }
.ledger .card h3 span { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }
.ledger .card.out h3 span { background: var(--teal); box-shadow: 0 0 16px var(--teal); }
.ledger .checks { margin-top: 0; }
.ledger .checks li { color: var(--text); }
.ledger .checks li small { display: block; color: var(--muted); font-size: 15px; }
.never { margin-top: 32px; text-align: center; color: var(--muted); }
.never strong { color: var(--text); font-weight: 600; }
@media (min-width: 860px) { .ledger { grid-template-columns: 1fr 1fr; } }

/* Pricing */

.plans { display: grid; gap: 16px; }
.plan { padding: 36px; }
.plan h3 { font-size: 28px; margin-bottom: 6px; }
.plan > p { color: var(--muted); }
.plan .checks { margin-top: 24px; }
.plan .checks li { color: var(--text); }
.plan.premium {
  border-color: rgba(61, 220, 122, 0.38);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(31, 215, 96, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.plan .note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 15px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }

/* Guides */

.guide-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-card { display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.guide-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.guide-card p { flex: 1; margin-bottom: 20px; }
.guide-card .more { color: var(--green); font-weight: 600; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .guide-card:hover { transform: none; } }

/* FAQ */

.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 26px; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* Closing call to action */

.closing { text-align: center; }
.closing .app-icon { width: 96px; height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(31, 215, 96, 0.35)); }
.closing h2 { font-size: clamp(36px, 5.6vw, 64px); margin-bottom: 18px; }
.closing .lead { margin: 0 auto 32px; max-width: 520px; }

/* Footer */

.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--faint); font-size: 15px; }
.footer .wrap { display: grid; gap: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
@media (min-width: 860px) {
  .footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

/* Article pages: guides and the privacy policy */

.article { padding-block: clamp(48px, 8vw, 96px) clamp(80px, 10vw, 120px); }
.article .wrap { max-width: 720px; }
.crumbs { margin-bottom: 28px; font-size: 15px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.article h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 20px; }
.article .lead { margin-bottom: 40px; }
.article h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 16px; }
.article p + p { margin-top: 16px; }
.article p, .article li { color: rgba(242, 245, 243, 0.82); }
.article strong { color: var(--text); font-weight: 600; }
.article ul { list-style: none; display: grid; gap: 12px; }
.article ul li { position: relative; padding-left: 22px; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.article a { color: var(--green); text-underline-offset: 3px; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin: 8px 0; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 64px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(61, 220, 122, 0.14); color: var(--green); font-weight: 700; font-size: 15px;
}
.tip {
  margin-top: 32px; padding: 20px 24px; border-radius: 18px;
  border: 1px solid rgba(61, 220, 122, 0.3); background: rgba(31, 215, 96, 0.07);
}
.tip strong { color: var(--green); }
.article-cta {
  margin-top: 56px; padding: 32px; border-radius: var(--radius); text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, rgba(31, 215, 96, 0.18), transparent 70%), var(--bg-raised);
  border: 1px solid var(--line);
}
.article-cta h2 { margin: 0 0 18px; }
.updated { color: var(--faint); font-size: 15px; margin-bottom: 32px; }
