/* Tokens copied from the Framer project's color styles */
:root {
  --bg: #FFFFFF;
  --gray: #F5F5F7;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --hairline: #E5E5EA;
  --blue: #0071E3;
  --blue-edge: #0066D1;
  --blue-shadow: #0B4FA0;
  --link: #0066CC;
  --link-gray: #424245;
  --green: #248A3D;
  --green-soft: rgba(36, 138, 61, 0.12);
  --pixel-gray: #C7C7CC;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Geist Pixel", "Inter", monospace;
  --max: 1040px;

  /* Type scale (desktop ≥1200px) */
  --fs-display: 64px;
  --fs-h2: 44px;
  --fs-pixel-display: 36px;
  --fs-lead: 21px;
  --fs-h3: 21px;
  --fs-body: 17px;
  --fs-nav: 14px;
}

@media (max-width: 1199.98px) {
  :root { --fs-display: 56px; --fs-h2: 40px; --fs-pixel-display: 34px; --fs-nav: 12px; }
}

@media (max-width: 809.98px) {
  :root { --fs-display: 40px; --fs-h2: 30px; --fs-pixel-display: 28px; --fs-lead: 19px; --fs-h3: 19px; --fs-body: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "cv03", "cv04", "cv09", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; }
.muted { color: var(--muted); }

/* Type */
.pixel-display { font-family: var(--font-pixel); font-size: var(--fs-pixel-display); line-height: 1.1; letter-spacing: -0.01em; }
.display { font-size: var(--fs-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--muted); max-width: 460px; }
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.body-muted { font-size: var(--fs-body); line-height: 1.47; color: var(--muted); }
.label { font-size: 14px; font-weight: 600; line-height: 1.3; }
.small { font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Buttons: flat fill with a hard bottom shadow, lifted on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0, 1);
}
.btn:hover { transform: translate(-2px, -1px) scale(1.02); }
.btn:active { transform: translate(2px, 2px) scale(0.96); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-dark { background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 8px 18px; box-shadow: 0 3px 0 #000; }
.btn-dark:hover { box-shadow: 0 4px 0 #000; }
.btn-dark:active { box-shadow: 0 1px 0 #000; }

.btn-blue { background: var(--blue); color: #fff; border: 1px solid var(--blue-edge); box-shadow: 0 3px 0 var(--blue-shadow); }
.btn-blue:hover { box-shadow: 0 4px 0 var(--blue-shadow); }
.btn-blue:active { box-shadow: 0 1px 0 var(--blue-shadow); }
.btn-lg { padding: 18px 36px; }
.btn-lg:hover { transform: translate(-2px, -1px) scale(1.03); }

.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--hairline); }
.btn-block { width: 100%; padding: 14px 22px; }
.btn-block:hover { transform: translateY(-1px); }
.btn.is-busy { opacity: 0.65; pointer-events: none; }
.btn.is-busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }

.pixel-arrow { width: 14px; height: 14px; fill: #fff; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #000; }
.wordmark { font-family: var(--font-pixel); font-size: 20px; line-height: 1.2; letter-spacing: 0.02em; }
.nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: var(--fs-nav); line-height: 1.3; color: var(--link-gray); transition: color 0.2s; }
.nav-link:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 24px 72px; }
.hero-grid { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.intro { display: flex; flex-direction: column; gap: 16px; }
.cta { display: flex; align-items: center; gap: 20px; }
.free { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.check-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 11px; }
.check-dot .icon { stroke-width: 3; }

.hero-visual {
  position: relative;
  flex: none;
  width: 420px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.glow { position: absolute; left: 20px; top: 110px; width: 380px; height: 380px; border-radius: 50%; background: #DCEBFF; filter: blur(60px); }
.fade { display: none; }

/* Phone mockup */
.phone { position: relative; z-index: 1; width: 290px; height: 590px; padding: 9px; border-radius: 46px; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35); }
.screen { height: 100%; border-radius: 38px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 4px; }
.time { font-size: 12px; font-weight: 600; line-height: 1.35; }
.status-icons { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.icon-battery { font-size: 14px; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 4px; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; line-height: 1.4; color: var(--blue); }
.back .icon { font-size: 14px; }
.saved-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: rgba(36, 138, 61, 0.10); color: var(--green); font-size: 10.5px; font-weight: 600; line-height: 1.4; }
.saved-pill .icon { font-size: 11px; }
.app-title { display: flex; flex-direction: column; gap: 3px; padding: 10px 16px 12px; }
.app-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.app-sub { display: flex; align-items: center; gap: 4px; font-size: 10.5px; line-height: 1.4; color: #86868B; }
.app-sub .icon { font-size: 10px; }
.app-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 0 14px; }
.note { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #FFFDF8; border: 1px solid #F1EADB; font-size: 12.5px; line-height: 1.5; }
.note-date { font-size: 10px; line-height: 1.4; color: #AEAEB2; }
.attached-label { font-size: 9.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0.04em; color: #86868B; }
.attachments { display: flex; align-items: center; gap: 8px; }
.voice { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #F2F2F7; font-size: 11px; font-weight: 500; line-height: 1.4; }
.voice .icon { font-size: 13px; color: var(--blue); }
.thumb { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.thumb-photo { background: linear-gradient(135deg, #FBD3B0 0%, #F6A9A9 55%, #C9B6F2 100%); }
.thumb-video { background: #2C2C2E; color: #fff; display: grid; place-items: center; font-size: 14px; }
.app-bottom { display: flex; flex-direction: column; gap: 10px; padding: 10px 14px 18px; border-top: 1px solid #F0F0F2; }
.tools { display: flex; justify-content: center; gap: 16px; font-size: 16px; color: #8E8E93; }
.tools .icon { stroke-width: 1.75; }
.save-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; box-shadow: 0 2px 0 var(--blue-shadow); font-size: 12px; font-weight: 600; }
.save-btn .icon { font-size: 12px; }

.saved-card {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.18);
  animation: rise-small 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both, float 2.6s ease-in-out 1.3s infinite alternate;
}
.saved-check { width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 15px; flex: none; }
.saved-title { display: block; font-size: 12px; font-weight: 600; line-height: 1.35; }
.saved-sub { display: block; font-size: 10.5px; line-height: 1.35; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-small { from { opacity: 0; transform: translateY(12px); } }
@keyframes float { to { transform: translateY(-4px); } }

/* Feather divider */
.feather-divider { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 24px; }
.feather-divider .line { width: 64px; height: 1px; background: var(--hairline); }

/* How it works */
.how { padding: 88px 24px; scroll-margin-top: 56px; }
.how-inner { display: flex; flex-direction: column; gap: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.connector, .icon-box { display: none; }
.step-card { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-num { font-family: var(--font-pixel); font-size: 13px; line-height: 1.3; letter-spacing: 0.04em; color: var(--blue); }
.step-text { display: flex; flex-direction: column; gap: 4px; }
.how-cta { display: flex; justify-content: center; padding-top: 16px; }

/* Contact */
.contact { padding: 8px 24px 64px; }
.contact-card { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; text-align: center; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--link); }
.contact-link .icon { font-size: 15px; }
.contact-link:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--gray); padding: 36px 24px 28px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-inner > .small:first-child { margin-bottom: 6px; scroll-margin-top: 80px; }
.footer-rule { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; line-height: 1.4; }
.footer-links a { color: var(--link-gray); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-country { color: var(--muted); }

/* Login modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
#login-mount { display: contents; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(29, 29, 31, 0.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in 0.2s ease both; }
.login-card {
  position: relative;
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 0 #EDEDF0, 0 24px 48px -12px rgba(0, 0, 0, 0.12);
  animation: rise-small 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.login-header { display: flex; flex-direction: column; gap: 6px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form[hidden] { display: none; }
/* Form fields (shared by the login card, /welcome, /settings and sheets) */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 600; line-height: 1.3; }
.field-label .optional { font-weight: 400; color: var(--muted); }
.field-hint { font-size: 12px; line-height: 1.4; color: var(--muted); }
.field-error { font-size: 13px; line-height: 1.4; color: #D70015; }
.input { width: 100%; height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 17px; color: var(--ink); outline: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.input::placeholder { color: #86868B; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.input.invalid { border-color: #D70015; }
.input.invalid:focus { box-shadow: 0 0 0 3px rgba(215, 0, 21, 0.14); }
.phone-input { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: text; transition: border-color 0.2s, box-shadow 0.2s; }
.phone-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.prefix { font-size: 17px; font-weight: 500; white-space: nowrap; }
.sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.phone-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); }
.phone-input input::placeholder { color: #86868B; }
.phone-input.invalid { border-color: #D70015; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; color: #86868B; }
.pw-toggle:hover { color: var(--ink); background: var(--gray); }
.lc-email { font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.text-link { font-size: 12px; line-height: 1.4; color: var(--link); text-align: left; }
.text-link:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 10px; }
.divider span { flex: 1; height: 1px; background: var(--line); }
.legal { text-align: center; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tablet and below: stack the hero */
@media (max-width: 999.98px) {
  .hero { padding: 80px 20px 0; }
  .hero-grid { flex-direction: column; gap: 36px; }
  .hero-text { align-items: center; text-align: center; }
  .intro { align-items: center; }
  .lead { max-width: 520px; }
  .hero-visual { width: 350px; max-width: 100%; height: 470px; padding-top: 8px; align-items: flex-start; overflow: hidden; }
  .glow { left: -15px; top: 60px; }
  .saved-card { left: 4px; bottom: 28px; }
  .fade { display: block; position: absolute; z-index: 3; left: 0; bottom: 0; width: 100%; height: 140px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 85%); pointer-events: none; }
  .saved-card { z-index: 4; }
}

/* Phone */
@media (max-width: 809.98px) {
  .nav-link { display: none; }
  .cta { flex-direction: column; gap: 14px; width: 100%; }
  .cta .btn { width: 100%; }
  .free { font-size: 14px; }

  .how { padding: 40px 24px 56px; }
  .how-inner { gap: 32px; }
  .h2 .muted { display: block; margin-top: 6px; }
  .steps { display: flex; flex-direction: column; gap: 0; }
  .connector { display: block; width: 44px; height: 22px; margin: 8px 0; background: linear-gradient(var(--pixel-gray) 0 2px, transparent 2px) center top / 2px 5px repeat-y; }
  .step:first-child .connector { display: none; }
  .step-card { flex-direction: row; align-items: flex-start; gap: 16px; padding-top: 0; border-top: 0; }
  .step-num { display: none; }
  .icon-box { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gray); color: var(--blue); font-size: 20px; }
  .icon-box .icon { stroke-width: 1.75; }
  .how-cta { padding-top: 24px; }

  .footer { padding: 28px 16px 24px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-country { display: none; }
  .login-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Legal pages */
.legal-page { padding: 56px 24px 72px; }
.legal-article { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.legal-article h1 { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 10px; }
.legal-article h2 { font-size: 22px; font-weight: 600; line-height: 1.25; margin: 40px 0 10px; scroll-margin-top: 80px; }
.legal-article p, .legal-article ul { margin: 0 0 14px; }
.legal-article ul { padding-left: 22px; }
.legal-article li { margin-bottom: 6px; }
.legal-article a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.legal-summary { background: var(--gray); border-radius: 16px; padding: 20px 22px; margin: 0 0 28px; }
.legal-summary h2 { margin: 0 0 8px; font-size: 18px; }
.legal-summary ul { margin: 0; }
.legal-toc { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.legal-toc a { margin-right: 12px; white-space: nowrap; display: inline-block; }
@media (max-width: 600px) {
  .legal-page { padding: 32px 16px 48px; }
  .legal-article h1 { font-size: 30px; }
  .legal-article h2 { font-size: 20px; margin-top: 32px; }
}
