/* Diskly website: calm, Apple-style. Light by default, dark when the visitor's Mac is in dark mode. */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.22), 0 12px 24px -12px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: #38383a;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --link: #2997ff;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; }
h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }

section { padding: 0 16px; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--text-2); line-height: 1.4; }
.lead em { font-style: normal; color: var(--text); }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--text-2); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.fine { color: var(--text-2); font-size: 14px; }
.center { text-align: center; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  transition: background 0.2s ease;
}
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button.small { padding: 5px 14px; font-size: 13px; }
.button.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.button.secondary:hover { background: color-mix(in srgb, var(--link) 8%, transparent); }
.link { font-size: 17px; }
.actions { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 19px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text); opacity: 0.8; font-size: 13px; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* Hero */
.hero { text-align: center; padding-top: 96px; }
.hero h1 { max-width: 880px; margin: 0 auto; }
.hero .lead { max-width: 700px; margin: 20px auto 0; }
.hero .fine { margin-top: 18px; }

.tour { max-width: 1180px; margin: 56px auto 0; position: relative; }
.tour video { width: 100%; border-radius: 22px; background: var(--bg-alt); }
.video-toggle {
  position: absolute; right: 18px; bottom: 18px;
  border: 0; border-radius: 980px; padding: 6px 14px;
  font: 500 13px/1.2 inherit; color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; opacity: 0; transition: opacity 0.2s ease;
}
.tour:hover .video-toggle, .video-toggle:focus-visible { opacity: 1; }

/* Statement */
.statement { text-align: center; padding-top: 140px; padding-bottom: 40px; }
.statement h2 { max-width: 900px; margin: 0 auto 24px; }

/* Principles: explains, honest, you decide */
.principles { max-width: var(--max); margin: 70px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 30px; }
.step {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  margin-bottom: 18px;
}
.principle h3 { font-size: 24px; margin-bottom: 10px; }
.principle p:not(.step) { color: var(--text-2); font-size: 16px; }

/* Features */
.features { max-width: var(--max); margin: 0 auto; padding-top: 130px; display: grid; gap: 120px; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { margin-bottom: 16px; }
.feature-text p:not(.eyebrow) { color: var(--text-2); font-size: 19px; }
.feature img { border-radius: 14px; box-shadow: var(--shadow); }

/* Explain with Diskly: a drawn Finder right-click menu */
.finder-mock { position: relative; min-height: 420px; border-radius: 14px; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #6f8fb8, #b7a6d6); overflow: hidden; }
@media (prefers-color-scheme: dark) { .finder-mock { background: linear-gradient(160deg, #23324a, #3d3157); } }
.finder-item { position: absolute; left: 12%; top: 16%; display: grid; justify-items: center; gap: 6px; width: 110px; }
.finder-item svg { width: 64px; height: 52px; }
.finder-item span { font-size: 13px; color: #fff; background: #0a64d8; padding: 1px 6px; border-radius: 4px; }
.context-menu { position: absolute; left: calc(12% + 96px); top: calc(16% + 64px); margin: 0; padding: 5px;
  list-style: none; width: 230px; border-radius: 10px; font-size: 13px; line-height: 1.2;
  background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--text);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.context-menu li { padding: 4px 10px; border-radius: 5px; display: flex; align-items: center; gap: 7px; }
.context-menu li.sep { padding: 0; margin: 4px 10px; height: 1px; background: var(--line); }
.context-menu li.chosen { background: var(--accent); color: #fff; font-weight: 500; }
.context-menu img { display: inline-block; }
@media (max-width: 640px) {
  .finder-mock { min-height: 400px; }
  .finder-item { left: 6%; top: 6%; }
  .context-menu { left: 18%; top: 24%; width: 72%; }
}

/* Section heads */
.section-head { text-align: center; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 18px; }

/* Safety */
.safety { background: var(--bg-alt); margin-top: 160px; padding-top: 110px; padding-bottom: 110px; }
.grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 30px 28px; }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h4 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }

/* More */
.more { max-width: var(--max); margin: 0 auto; padding-top: 130px; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.more-list li { border-top: 1px solid var(--line); padding-top: 18px; }
.more-list strong { display: block; font-size: 17px; margin-bottom: 4px; }
.more-list span { color: var(--text-2); font-size: 15px; }

/* Beta signup */
.beta { padding-top: 150px; }
.beta-form { max-width: 520px; margin: 0 auto; padding: 32px; background: var(--bg-alt); border-radius: var(--radius); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 11px 12px; font: inherit; font-weight: 400; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #d70015; }
.beta-form .button { border: 0; cursor: pointer; font-family: inherit; width: 100%; }
.beta-form .button:disabled { opacity: 0.6; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { font-size: 15px; }
.form-message:empty { display: none; }
.form-message.error { color: #d70015; }
.form-message.success { color: var(--text); font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .field [aria-invalid="true"] { border-color: #ff6961; }
  .form-message.error { color: #ff6961; }
}

/* Pricing */
.pricing { padding-top: 150px; }
.plans { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--bg-alt); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; }
.plan.featured { background: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 10px; border-radius: 980px; margin-bottom: 14px; }
.plan h3 { font-size: 24px; }
.price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; }
.price s { font-size: 22px; font-weight: 500; color: var(--text-2); margin-left: 6px; }
.plan-note { color: var(--text-2); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 30px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .button { text-align: center; }
.pricing > .fine { margin-top: 22px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; padding-top: 150px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 20px; }

/* Closing */
.closing { text-align: center; padding-top: 150px; padding-bottom: 120px; }
.closing img { margin: 0 auto 24px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16)); }
.closing .lead { margin-top: 14px; }
.closing .fine { margin-top: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 22px 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--text-2); }

/* Gentle reveal as sections scroll in (skipped when Reduce Motion is on, or without JavaScript). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Narrow screens */
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .features { gap: 90px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .more-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .button.small { margin-left: auto; }
  .hero { padding-top: 48px; }
  .tour { margin-top: 40px; }
  .tour video { border-radius: 12px; }
  .grid, .plans, .more-list { grid-template-columns: 1fr; }
  .statement, .beta, .pricing, .faq, .closing { padding-top: 100px; }
  .beta-form { padding: 22px; }
  .safety { margin-top: 110px; padding-top: 80px; padding-bottom: 80px; }
}
