/* IronGate marketing site. Palette: wrought iron + verdigris. */
@import url("fonts.css");

:root {
  --paper: #eef1f4;      /* cool steel light */
  --paper-2: #e2e7ec;
  --ink: #1c2430;        /* deep iron */
  --iron: #4a5868;       /* slate, secondary text */
  --line: #cbd3dc;
  --patina: #2e7d6f;     /* verdigris = locked, safe */
  --patina-deep: #1f5c51;
  --amber: #b9801a;      /* unprotected state, used sparingly */
  --white: #ffffff;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --win: "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 66ch;
}

*, *::before, *::after { 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: 400 1.0625rem/1.6 var(--body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--patina-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--patina); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ── Type ── */
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: 750; font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 105%; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--iron); max-width: 52ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  font: 650 1rem/1 var(--body); text-decoration: none; border-radius: 6px;
  border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--patina); border-color: var(--patina); color: #fff; }
.btn-solid:hover { background: var(--patina-deep); border-color: var(--patina-deep); color: #fff; }

/* ── Header ── */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 1.25rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.01em; }
.site-head nav { display: flex; gap: 24px; margin-left: auto; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-head nav a:hover { text-decoration: underline; }
.head-cta { display: flex; gap: 12px; align-items: center; }
.head-cta .signin { color: var(--ink); font-weight: 500; text-decoration: none; }
.head-cta .btn { padding: 10px 16px; font-size: .95rem; }
@media (max-width: 900px) { .site-head nav { display: none; } .head-cta { margin-left: auto; } }
@media (max-width: 480px) { .head-cta .signin { display: none; } }

/* ── Hero ── */
.hero { padding: 72px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 18px; }
.hero .fine { color: var(--iron); font-size: .95rem; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 44px; } .hero { padding-top: 48px; } }

/* The folder window: the one memorable thing on the page */
.explorer {
  background: var(--white); border: 1px solid #b7c1cc; border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(28, 36, 48, .45), 0 2px 0 #d5dce3;
  font-family: var(--win); font-size: .9rem; overflow: hidden;
}
.ex-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f6f8fa; border-bottom: 1px solid #e3e8ed; }
.ex-dots { display: flex; gap: 6px; } .ex-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6dd; }
.ex-path { flex: 1; background: #fff; border: 1px solid #e0e5ea; border-radius: 5px; padding: 5px 10px; color: #3b4652; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-head, .ex-row { display: grid; grid-template-columns: 1fr 120px 92px; gap: 10px; padding: 8px 16px; align-items: center; }
.ex-head { color: #6b7783; font-size: .8rem; border-bottom: 1px solid #edf0f3; }
.ex-row { border-bottom: 1px solid #f2f4f6; transition: background-color .5s; }
.ex-row:last-child { border-bottom: 0; }
.ex-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ex-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-name b { font-weight: 400; color: var(--patina-deep); }
.fi { flex: none; width: 22px; height: 26px; position: relative; }
.fi svg { width: 22px; height: 26px; }
.fi .lock { position: absolute; right: -7px; bottom: -4px; width: 16px; height: 16px; background: #fff; border-radius: 50%; padding: 1px; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .35s; }
.ex-row.locked .fi .lock { opacity: 1; transform: none; }
.ex-row.locked { background: #f1f8f6; }
.ex-type { color: #6b7783; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-state { font-size: .78rem; font-weight: 600; }
.ex-state::before { content: "Readable"; color: var(--amber); }
.ex-row.locked .ex-state::before { content: "Encrypted"; color: var(--patina); }
.ex-foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 16px; background: #f6f8fa; border-top: 1px solid #e3e8ed; flex-wrap: wrap; }
.ex-status { color: #3b4652; display: flex; align-items: center; gap: 8px; }
.ex-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--patina); }
.view-toggle { display: inline-flex; border: 1px solid #cfd6dd; border-radius: 6px; overflow: hidden; }
.view-toggle button { font: 600 .8rem/1 var(--win); padding: 8px 12px; border: 0; background: #fff; color: #3b4652; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.peek { font-family: Consolas, "Cascadia Mono", monospace; font-size: .78rem; line-height: 1.5; padding: 14px 16px; margin: 0; background: #fbfcfd; border-top: 1px solid #e3e8ed; color: #3b4652; min-height: 112px; white-space: pre; overflow-x: auto; }
@media (max-width: 560px) { .ex-head, .ex-row { grid-template-columns: 1fr 80px; } .ex-type, .ex-head span:nth-child(2) { display: none; } .peek { font-size: .7rem; } }
.peek.thief { color: #8a5a10; background: #fffaf0; }
.caption { margin-top: 14px; color: var(--iron); font-size: .9rem; }

/* ── Sections ── */
section { padding: 96px 0; }
.band { background: var(--white); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: #dfe5eb; }
.dark h2, .dark h3 { color: #fff; }
.dark a { color: #8fd3c4; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head p { color: var(--iron); font-size: 1.12rem; margin-top: 18px; }
.dark .sec-head p { color: #b9c4cf; }

.where { padding: 30px 0; border-bottom: 1px solid var(--line); }
.where p { margin: 0; max-width: none; color: var(--iron); text-align: center; }
.where strong { color: var(--ink); font-weight: 600; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 3px solid var(--ink); }
.steps li { padding: 28px 28px 8px 0; counter-increment: s; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font: 800 3.4rem/1 var(--display); font-stretch: 125%; color: var(--patina); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--iron); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Two sides of the same folder */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.side { padding: 36px 40px; }
.side + .side { border-left: 1px solid var(--line); background: #fbfaf6; }
.side h3 { font-size: 1.35rem; margin-bottom: 18px; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { padding: 12px 0; border-top: 1px solid var(--line); }
.side li:first-child { border-top: 0; }
@media (max-width: 860px) { .sides { grid-template-columns: 1fr; } .side + .side { border-left: 0; border-top: 1px solid var(--line); } .side { padding: 28px 24px; } }

/* Security facts: a list of rows, not a card grid */
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.fact { padding: 22px 0; border-top: 1px solid var(--line); }
.fact h3 { margin-bottom: 6px; font-size: 1.08rem; }
.fact p { color: var(--iron); margin: 0; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* Never locked in */
.nli { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.nli ul { margin: 0; padding: 0; list-style: none; }
.nli li { padding: 18px 0 18px 40px; border-top: 1px solid #36414f; position: relative; }
.nli li:first-child { border-top: 0; }
.nli li svg { position: absolute; left: 0; top: 21px; width: 22px; height: 22px; }
.nli li strong { color: #fff; display: block; margin-bottom: 4px; }
@media (max-width: 860px) { .nli { grid-template-columns: 1fr; gap: 36px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .8fr); gap: 20px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; }
.plan.main { border: 2px solid var(--ink); }
.plan h3 { font-size: 1.4rem; }
.plan .price { font: 800 3rem/1 var(--display); font-stretch: 112%; margin: 18px 0 4px; }
.plan .price small { font: 500 1rem var(--body); color: var(--iron); }
.plan .who { color: var(--iron); margin-bottom: 22px; }
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--patina); border-bottom: 2px solid var(--patina); transform: rotate(-45deg); }
.plan.custom { background: transparent; border-style: dashed; }
.price-note { margin-top: 26px; color: var(--iron); text-align: center; max-width: none; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 650 1.1rem/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 1.6rem/1 var(--display); color: var(--patina); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--iron); padding-bottom: 6px; }

/* Final CTA */
.final { text-align: left; }
.final .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.final h2 { max-width: 18ch; }

/* Footer */
.site-foot { padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--iron); font-size: .95rem; }
.site-foot .wrap { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--iron); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal .draft { background: #fff7e6; border: 1px solid #e8cf98; border-radius: 8px; padding: 14px 18px; margin: 20px 0 28px; }

/* One orchestrated moment: files lock in sequence on load */
@media (prefers-reduced-motion: reduce) { .ex-row, .fi .lock { transition: none; } }
