/* Piece by Piece: the website's one stylesheet (docs/website.md › Look). */

@font-face { font-family: Newsreader; src: url(fonts/Newsreader-Light.ttf) format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url(fonts/Newsreader-LightItalic.ttf) format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: Newsreader; src: url(fonts/Newsreader-Regular.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #111111;
  --body: #3A3A3A;
  --secondary: #6B6B6B;
  --hairline: #E3E3E3;
  --hairline-soft: #EDEDED;
  --underline: #BDBDBD;
  --accent: #A8322D; /* the current page's underline only */
  --serif: Newsreader, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-wrap: break-word; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--body); }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { font: 400 26px/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; padding: 9px 0; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a { font: 400 16px var(--sans); color: var(--ink); text-decoration: none; padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a[aria-current="page"] { font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-nav a.button-small { height: 44px; padding: 0 22px; border-radius: 22px; background: var(--ink); color: #FFFFFF; font: 500 15px var(--sans); }

/* Buttons */
.button { height: 56px; padding: 0 32px; border-radius: 28px; background: var(--ink); color: #FFFFFF; font: 500 16px var(--sans); text-decoration: none; display: inline-flex; align-items: center; text-align: center; }
.button:hover { color: #FFFFFF; background: #2A2A2A; }
.site-nav a.button-small:hover { color: #FFFFFF; background: #2A2A2A; }
.text-link { font: 400 16px var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }

/* Type */
.title { font: 300 clamp(48px, 6vw, 72px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.subtitle { font: italic 300 clamp(22px, 2.4vw, 28px)/1.3 var(--serif); color: var(--secondary); }
.heading { font: 300 clamp(34px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
.label { font: 600 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); }
.lead { font: 400 18px/1.6 var(--sans); color: var(--body); max-width: 34em; }
.text { font: 400 16px/1.6 var(--sans); color: var(--body); max-width: 34em; }
.small { font: 400 14px/1.5 var(--sans); color: var(--secondary); }

/* Page head (Pricing, FAQ, Support, 404) */
.page-head { padding-top: 88px; display: flex; flex-direction: column; gap: 20px; }

/* Home */
.hero { padding-top: 88px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.device { flex: 0 1 auto; min-width: 0; display: flex; justify-content: center; width: 100%; max-width: max-content; margin: 0 auto; }
.ipad { width: 368px; max-width: 100%; padding: 12px; border-radius: 34px; background: var(--ink); }
.ipad.small { width: 319px; }
.ipad img { width: 100%; border-radius: 22px; background: #FFFFFF; }

.section { margin-top: 128px; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px; }
.part { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ink); }
.part h3 { font: 400 26px/1.2 var(--serif); color: var(--ink); }

.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.feature-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 64px; padding: 56px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.family .text { font-size: 17px; }

.closing { margin-top: 120px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.closing .button { margin-top: 8px; }

/* Pricing */
.plans-section { margin-top: 56px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.plan { border: 1px solid var(--hairline); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.plan.featured { border: 1.5px solid var(--ink); }
.price-block { display: flex; flex-direction: column; gap: 6px; }
.price { font: 300 56px/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.price span { font: italic 300 24px var(--serif); color: var(--secondary); letter-spacing: 0; }
.price-note { font: 400 15px/1.4 var(--sans); color: var(--secondary); }
.launch { padding-top: 20px; border-top: 1px solid var(--hairline); font: 400 15px/1.5 var(--sans); color: var(--body); }
.launch strong { font-weight: 600; color: var(--ink); }
.plans-note { margin-top: 24px; }

.dots { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dots li { display: flex; gap: 12px; align-items: baseline; font: 400 16px/1.5 var(--sans); color: var(--body); }
.dots li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px; border: 1.5px solid var(--ink); transform: translateY(-1px); }

.questions-section { margin-top: 104px; }
.qa { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--hairline-soft); }
.qa h3 { font: 400 22px/1.3 var(--serif); color: var(--ink); }
.qa-list { margin-top: 16px; }

/* FAQ */
.faq-group { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 8px 64px; align-items: flex-start; }
.faq-group-label { flex: 1 1 220px; padding-top: 26px; }
.faq-group-list { flex: 999 1 560px; min-width: 0; }

/* Privacy */
.narrow { max-width: 760px; margin: 0 auto; padding: 88px var(--gutter) 0; }
.narrow > .page-head { padding-top: 0; }
.in-short { margin-top: 40px; padding: 28px 32px; border: 1px solid var(--hairline); border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.in-short .dots { gap: 10px; }
.policy { display: flex; flex-direction: column; gap: 14px; margin-top: 48px; }
.policy h2 { font: 400 28px/1.2 var(--serif); color: var(--ink); }
.policy .text { font-size: 17px; }

/* Support */
.contact-section { margin-top: 48px; }
.contact { padding: 40px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hairline); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact-email { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.contact-email a { font: 300 clamp(28px, 4vw, 40px)/1.15 var(--serif); color: var(--ink); text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.cards-section { margin-top: 56px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { border: 1px solid var(--hairline); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { font: 400 24px/1.25 var(--serif); color: var(--ink); }

/* 404 */
.not-found { padding-top: 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 120px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font: 400 14px/1.5 var(--sans); color: var(--secondary); }
.footer-name { display: flex; flex-direction: column; gap: 4px; }
.footer-name span:first-child { font: 400 20px/1.2 var(--serif); color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.footer-nav a { color: var(--secondary); min-height: 44px; display: inline-flex; align-items: center; }
.credits { flex-basis: 100%; font-size: 13px; }
.credits a { color: var(--secondary); }

/* Stacked (one column): each feature's words come before its iPad, so two iPads never meet */
@media (max-width: 860px) {
  .feature .device { order: 2; }
}

/* Phones: a narrower gutter and card padding so the text keeps its width */
@media (max-width: 600px) {
  :root { --gutter: 24px; }
  .plan { padding: 32px 24px; }
  .card { padding: 28px 24px; }
  .in-short { padding: 24px; }
  .hero, .page-head, .not-found { padding-top: 56px; }
  .narrow { padding-top: 56px; }
  .section { margin-top: 96px; }
}
