/* ===========================================================
   EZ Save — shared design system
   Brand identity: peach bg, periwinkle + action blue,
   Cal Sans headings / DM Sans body / Fredoka logo,
   soft grainy gradient tiles, squircle, "save anything instantly"
   =========================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=cal-sans@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

@font-face {
  font-family: "Roena";
  src: url("fonts/Roena-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --peach:        #FFEDD5;   /* background */
  --peach-soft:   #FFF5E6;
  --peach-deep:   #FCE1BE;
  --paper:        #FFFFFF;
  --off:          #F9FAFB;   /* background-alt2 */

  --blue:         #ADCBFF;   /* primary (soft periwinkle) */
  --blue-tint:    #C7DBFF;
  --action:       #3B78E2;   /* secondary (action blue) */
  --action-deep:  #2C5FC0;
  --sage:         #94C9A9;   /* success */
  --rose:         #D35269;   /* error */
  --gold:         #E7B45A;

  --ink:          #0D1821;   /* text */
  --slate:        #59636E;   /* secondary text */
  --line:         #F0DCC0;   /* warm hairline */
  --line-soft:    #EDE6DC;

  /* Effects */
  --radius-sm: 16px;
  --radius:    24px;
  --radius-lg: 34px;
  --shadow-sm: 0 2px 12px rgba(13,24,33,.06);
  --shadow:    0 16px 44px -20px rgba(13,24,33,.28);
  --shadow-lg: 0 34px 80px -30px rgba(13,24,33,.38);

  --maxw: 1120px;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Roena", "Cal Sans", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: "Roena", "Cal Sans", sans-serif;

  /* shared grain texture */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--peach);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle global grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .22;
  background-image: var(--grain);
}

main, header, footer, section { position: relative; z-index: 1; }

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.01em;
  font-weight: 700;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-family: "Cal Sans", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400; letter-spacing: 0; }
p  { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--action);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.18rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(59,120,226,.7);
}
.btn-primary:hover { background: var(--action-deep); color:#fff; transform: translateY(-2px); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; color: var(--action-deep); }

/* ---------- Brand / logo ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-logo); font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; color: var(--action); text-transform: uppercase; }
.brand .mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.brand .mark svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgba(59,120,226,.28)); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  background: rgba(255,237,213,.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--action); }
.nav-links a.nav-cta { padding: 10px 20px; color:#fff; }
.nav-links a.nav-cta:hover { color:#fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.section-head p { color: var(--slate); font-size: 1.12rem; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--action); }
.hero .lead { max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--slate); }

/* Phone frame — holds a real app screenshot (image sets the height, no cropping) */
.phone {
  width: 320px; max-width: 86%;
  margin: 0 auto;
  border-radius: 48px;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(13,24,33,.08);
  padding: 10px;
  position: relative;
}
.phone .shot {
  width: 100%; height: auto;
  display: block;
  border-radius: 38px;
  background: var(--peach-soft) var(--grain);
}
.phone.empty {
  aspect-ratio: 430/932;
}
.phone.empty::after {
  content: "Drop your screenshot in /images";
  position: absolute; inset: 10px; border-radius: 38px;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-body); font-size: .8rem; color: var(--slate);
  background: var(--peach-soft); padding: 20px;
}
.screen {
  height: 100%; border-radius: 38px; background: var(--peach);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.screen-bar { display:flex; justify-content:space-between; padding: 16px 22px 4px; font-size:.74rem; font-weight:600; }
.screen-search { display:flex; align-items:center; gap:10px; margin: 10px 16px 4px; padding: 11px 16px; background:#fff; border-radius:999px; box-shadow: var(--shadow-sm); }
.screen-search span { color: var(--slate); font-size:.82rem; flex:1; }
.screen-search .pf { width:26px; height:26px; border-radius:50%; background: var(--blue); display:grid; place-items:center; color:var(--action-deep); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; padding: 12px 16px; }
.tile {
  border-radius: 16px; padding: 10px; min-height: 74px;
  display:flex; flex-direction:column; justify-content:space-between;
  position: relative; overflow: hidden; color: var(--ink);
}
.tile::after { content:""; position:absolute; inset:0; background-image: var(--grain); opacity:.5; mix-blend-mode: soft-light; pointer-events:none; }
.tile svg { width:18px; height:18px; }
.tile b { display:block; font-size:.66rem; line-height:1.1; }
.tile small { font-size:.54rem; color: rgba(13,24,33,.6); }
.t-blue { background: linear-gradient(150deg,#cfe0ff,#a9c8fb); }
.t-lime { background: linear-gradient(150deg,#e8f0a8,#cfe07e); }
.t-pink { background: linear-gradient(150deg,#f3cde8,#e0b0e8); }
.t-teal { background: linear-gradient(150deg,#bdeee3,#92dcc9); }
.t-grey { background: linear-gradient(150deg,#e8e8ea,#d4d4d8); }
.t-rose { background: linear-gradient(150deg,#f6d2c9,#e8b6ab); }
.t-sand { background: linear-gradient(150deg,#f2ddb6,#e8c98c); }
.t-sky  { background: linear-gradient(150deg,#bfe3f4,#92cdec); }
.t-sage { background: linear-gradient(150deg,#cfe9b8,#a9d98c); }
.screen-fab { position:absolute; bottom:18px; right:18px; width:44px; height:44px; border-radius:50%; background: var(--blue); display:grid; place-items:center; color:var(--action-deep); box-shadow: var(--shadow); z-index:4; }

/* ---------- Screenshot gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 940px; margin: 0 auto; }
.shot-card { text-align: center; }
.shot-card .phone { width: 260px; }
.shot-card h3 { margin: 22px 0 4px; }
.shot-card p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Trust strip ---------- */
.trust { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--peach-soft); }
.trust-inner { display:flex; justify-content:center; gap: 44px; flex-wrap: wrap; text-align:center; }
.trust-item b { display:block; font-family: var(--font-head); font-size: 1.7rem; color: var(--action); }
.trust-item span { font-size: .85rem; color: var(--slate); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 16px;
  position: relative; overflow: hidden; color: var(--ink);
}
.card .ico::after { content:""; position:absolute; inset:0; background-image: var(--grain); opacity:.5; mix-blend-mode:soft-light; }
.card .ico svg { width:24px; height:24px; position:relative; z-index:1; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--slate); margin: 0; font-size: .97rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { background: var(--paper); border:1px solid var(--line-soft); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.step .num {
  width: 42px; height: 42px; border-radius: 13px; background: var(--action); color:#fff;
  font-family: var(--font-head); display:grid; place-items:center; font-size:1.1rem; margin-bottom: 16px;
}
.step p { color: var(--slate); margin:0; }

/* ---------- Privacy band ---------- */
.band { background: var(--ink); color: #E6ECF1; border-radius: var(--radius-lg); padding: 58px; position: relative; overflow:hidden; }
.band::after { content:""; position:absolute; inset:0; background-image: var(--grain); opacity:.18; pointer-events:none; }
.band > * { position: relative; z-index:1; }
.band h2 { color: #fff; }
.band .lead { color: #AEBDC9; }
.band-grid { display:grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items:center; }
.band ul { list-style: none; padding: 0; margin: 18px 0 0; }
.band li { padding: 11px 0 11px 30px; position: relative; border-top: 1px solid rgba(255,255,255,.1); }
.band li:first-child { border-top: 0; }
.band li::before { content:"✓"; position:absolute; left:0; color: var(--blue); font-weight:700; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); position: relative; }
.plan.featured { border-color: var(--action); box-shadow: var(--shadow); }
.plan .tag { position:absolute; top:-13px; right: 26px; background: var(--action); color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding: 6px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; }
.plan .amt { font-family: var(--font-head); font-size: 2.6rem; color: var(--ink); }
.plan .amt small { font-family: var(--font-body); font-size: 1rem; color: var(--slate); font-weight:500; }
.plan ul { list-style:none; padding:0; margin: 18px 0 24px; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: var(--slate); font-size: .95rem; }
.plan li::before { content:"✓"; position:absolute; left:0; color: var(--sage); font-weight:700; }
.plan li.off { color: #b8a98f; }
.plan li.off::before { content:"–"; color:#cdbfa4; }
.price-foot { text-align:center; color: var(--slate); font-size: .9rem; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.qa { background: var(--paper); border:1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.qa summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display:flex; justify-content: space-between; gap: 16px; align-items:center; }
.qa summary::-webkit-details-marker { display:none; }
.qa summary::after { content:"+"; color: var(--action); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 24px 22px; color: var(--slate); }

/* ---------- CTA ---------- */
.cta { text-align:center; }
.cta-box { background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 62px 34px; box-shadow: var(--shadow); position:relative; overflow:hidden; }
.cta-box::after { content:""; position:absolute; inset:0; background-image: var(--grain); opacity:.16; pointer-events:none; }
.cta-box > * { position: relative; z-index:1; }

/* ---------- Footer ---------- */
.footer { background: var(--peach-soft); border-top: 1px solid var(--line); padding: 58px 0 32px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-family: var(--font-body); font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; color: var(--slate); margin: 0 0 14px; }
.footer a { display:block; color: var(--slate); padding: 5px 0; font-size:.95rem; }
.footer a:hover { color: var(--action); }
.footer .brand { margin-bottom: 12px; }
.footer .tagline { color: var(--slate); font-size:.92rem; max-width: 260px; font-family: var(--font-body); }
.footer-bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--slate); font-size:.86rem; }

/* ---------- Legal / doc pages ---------- */
.doc-hero { padding: 58px 0 26px; border-bottom: 1px solid var(--line); background: var(--peach-soft); }
.doc-hero .meta { color: var(--slate); font-size:.92rem; }
.doc { padding: 50px 0 76px; }
.doc h2 { font-size: 1.55rem; margin-top: 2.2em; padding-top: .4em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc p, .doc li { color: #2c3640; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc th { background: var(--peach-deep); font-size:.82rem; text-transform:uppercase; letter-spacing:.05em; color: var(--ink); }
.doc tr:last-child td { border-bottom: 0; }
.callout { background: var(--peach-soft); border: 1px solid var(--line); border-left: 4px solid var(--action); border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--paper); border:1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 36px; box-shadow: var(--shadow-sm); }
.toc h4 { font-family: var(--font-body); margin: 0 0 10px; font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color: var(--slate); }
.toc ol { columns: 2; margin: 0; }
.toc a { font-size:.94rem; }

/* ---------- Support specifics ---------- */
.support-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 16px; }
.contact-box { background: var(--ink); color: #E6ECF1; border-radius: var(--radius); padding: 44px; text-align:center; position:relative; overflow:hidden; }
.contact-box::after { content:""; position:absolute; inset:0; background-image: var(--grain); opacity:.16; pointer-events:none; }
.contact-box > * { position:relative; z-index:1; }
.contact-box h3 { color:#fff; }
.contact-box .lead { color:#AEBDC9; }
.contact-box a.btn { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 62px 0; }
  .hero-grid, .band-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cards, .steps, .support-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 38px; }
  .toc ol { columns: 1; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--peach); border-bottom: 1px solid var(--line);
    padding: 14px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; width: 100%; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 26px; }
}
