/* EdgeNote website - one stylesheet for every page.
   Colours come from the app itself: the panel's Edge blue, ink navy, sticky-note yellow and sheet lime. */
:root {
  --edge: #173f96;      /* the panel blue */
  --edge-2: #2a5cc4;
  --ink: #0f1f45;       /* headings, dark bands */
  --text: #24324a;
  --muted: #5a6a80;
  --paper: #f6f8fc;     /* cool page white */
  --white: #ffffff;
  --sticky: #ffd84d;    /* sticky-note yellow: primary actions */
  --sticky-2: #f2c21d;
  --lime: #cfe86a;      /* sheet-note green: secondary accent */
  --line: #dbe3f0;
  --radius-s: 6px;
  --radius-m: 12px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}
*, *::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(--text); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--edge); text-underline-offset: 3px; }
a:hover { color: var(--edge-2); }
:focus-visible { outline: 3px solid var(--sticky); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sticky); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---- type scale (1.25) ---- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 750; }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }

/* ---- header ---- */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.25rem var(--display); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #d6e2fb; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav .btn { margin-left: 8px; }
.nav a.btn-sticky, .nav a.btn-sticky:hover { color: var(--ink); background: var(--sticky); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--radius-s); padding: 7px 11px; font: 700 .95rem var(--body); cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 20px 18px; gap: 2px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---- buttons ---- */
.btn { display: inline-block; font: 700 1rem var(--body); text-decoration: none; padding: 13px 22px; border-radius: var(--radius-s); border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-sticky { background: var(--sticky); color: var(--ink); box-shadow: 0 3px 0 var(--sticky-2); }
.btn-sticky:hover { background: #ffe06e; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--edge); color: var(--edge); background: #fff; }
.btn-line:hover { background: var(--edge); color: #fff; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- hero: the panel slides in from the right edge, like the app ---- */
.hero { background: radial-gradient(1200px 600px at 85% -10%, #2a5cc4 0%, rgba(42,92,196,0) 60%), var(--edge); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); padding: 72px 0 84px; position: relative; z-index: 2; }
.hero-copy { max-width: 520px; }
.hero h1 { color: #fff; }
.hero .lead { color: #cfdcf7; }
.hero .note { margin-top: 18px; color: #b8c9ee; font-size: .95rem; }
.edge-stage { position: absolute; top: 46px; bottom: 46px; right: 0; width: min(48vw, 760px); z-index: 1; pointer-events: none; }
.edge-panel { position: absolute; top: 0; bottom: 0; right: 0; width: 100%; transform: translateX(78%); pointer-events: auto;
  transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.edge-panel.in { transform: translateX(8%); }
.edge-stage:hover .edge-panel.in, .edge-panel:focus-within { transform: translateX(0); }
.edge-panel img { height: 100%; width: auto; max-width: none; border-radius: 14px 0 0 14px; box-shadow: -18px 24px 60px rgba(5,15,45,.45); }
.edge-tab { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); width: 30px; padding: 16px 0; background: #123278; color: #fff;
  border-radius: 10px 0 0 10px; writing-mode: vertical-rl; transform-origin: center; text-align: center; font: 800 .82rem var(--display); letter-spacing: .12em;
  box-shadow: -4px 0 14px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .edge-panel { transition: none; } }
@media (max-width: 1100px) {
  .edge-stage { position: relative; top: auto; bottom: auto; width: auto; height: 300px; margin: 0 0 -20px 20px; }
  .hero .wrap { padding: 48px 0 26px; }
  .edge-panel { transform: translateX(14%); }
  .edge-panel.in { transform: translateX(14%); }
}

/* ---- sections ---- */
.band { padding: 84px 0; }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: #dfe8fb; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .lead { color: #b9c8e6; }
.section-head { margin-bottom: 36px; }

/* steps: the real sequence of using EdgeNote */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 54px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--sticky); color: var(--ink);
  font: 800 1.15rem/40px var(--display); text-align: center; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* showcase: tabs over one large screenshot (not a card grid) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.tab { background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 10px 14px; font: 700 1rem var(--body); color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sticky-2); }
.panel-view { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.panel-view[hidden] { display: none; }
.panel-view figure { margin: 0; }
.shot { border-radius: var(--radius-m); box-shadow: 0 20px 50px rgba(15,31,69,.22); border: 1px solid #c9d6ee; background: var(--edge); }
.panel-view ul { padding-left: 1.1em; margin: 0; color: var(--text); }
.panel-view li { margin-bottom: .45em; }
@media (max-width: 860px) { .panel-view { grid-template-columns: 1fr; gap: 22px; } }

/* "also inside": a plain two-column list with sticky-colour markers */
.inside { columns: 2 320px; column-gap: 48px; list-style: none; padding: 0; margin: 0; }
.inside li { break-inside: avoid; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.inside li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 14px; border-radius: 3px; background: var(--sticky); box-shadow: 2px 2px 0 rgba(0,0,0,.08); }
.inside li:nth-child(3n+2)::before { background: var(--lime); }
.inside li:nth-child(3n)::before { background: #9fc5ff; }
.inside b { color: var(--ink); }
.band-ink .inside li { border-bottom-color: rgba(255,255,255,.12); }
.band-ink .inside b { color: #fff; }

/* trial / pricing */
.trial { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.trial-note { background: var(--sticky); color: var(--ink); padding: 28px 28px 24px; border-radius: 4px 4px 18px 4px; box-shadow: 0 14px 30px rgba(0,0,0,.25); transform: rotate(-1.2deg); }
.trial-note h3 { color: var(--ink); font-size: 1.5rem; }
.trial-note ul { padding-left: 1.1em; margin: 0 0 18px; }
.trial-note .btn { background: var(--ink); color: #fff; box-shadow: none; }
.trial-note .btn:hover { background: var(--edge); color: #fff; }
.trial-note small { display: block; margin-top: 12px; }
@media (max-width: 860px) { .trial { grid-template-columns: 1fr; } .trial-note { transform: none; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 700 1.08rem var(--body); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.4rem/1 var(--display); color: var(--edge); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* feature page: alternating rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text ul { padding-left: 1.1em; color: var(--text); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 22px; } .feature:nth-of-type(even) .feature-text { order: 0; } }

/* download */
.dl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.dl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.dl h3 { margin-bottom: .3em; }
.dl p { color: var(--muted); }
.dl-primary { border: 2px solid var(--edge); }
.req { margin-top: 32px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .dl-options { grid-template-columns: 1fr; } }

/* plain text pages (privacy, support) */
.page-head { background: var(--edge); color: #fff; padding: 58px 0 46px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); }
.page-head p { color: #cfdcf7; }
.prose { padding: 52px 0 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { max-width: 68ch; padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.contact-rows { display: grid; gap: 18px; max-width: 760px; }
.contact-rows > div { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--sticky-2); border-radius: var(--radius-s); padding: 18px 22px; }
.contact-rows h3 { margin-bottom: .25em; }
.contact-rows p { margin: 0; color: var(--muted); }

/* lightbox for screenshots */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(8,16,38,.9); display: none; align-items: center; justify-content: center; z-index: 60; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: var(--sticky); border: 0; border-radius: 50%; width: 42px; height: 42px; font: 800 1.2rem var(--display); cursor: pointer; }

/* footer */
.site-foot { background: var(--ink); color: #aebfdf; padding: 40px 0; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { color: #dfe8fb; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
