/* Quartick website (.claude/rules/website.md): the app's grey ground and coral, real screenshots, rounded display type
   like the app's numbers. No scripts, no web fonts: the rounded face is the system's where it has one. */
:root {
  --ground: #F2F2F7;
  --surface: #FFFFFF;
  --ink: #1C1C1E;
  --muted: #5F5F66;
  --line: #DCDCE1;
  --soft: #F7F7FA;
  --accent: #F04A1D;
  --accent-text: #B5320A;
  --button: #1C1C1E;
  --button-text: #FFFFFF;
  --band: #1C1C1E;
  --band-ink: #F2F2F7;
  --band-muted: #B4B4BB;
  --band-line: #3A3A3E;
  --band-link: #FF8057;
  --bezel: #0E0E10;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1C1C1E;
    --surface: #2C2C2E;
    --ink: #F2F2F7;
    --muted: #A8A8AF;
    --line: #3F3F43;
    --soft: #242426;
    --accent-text: #FF8057;
    --button: #F2F2F7;
    --button-text: #1C1C1E;
    --band: #121214;
    --band-line: #2E2E32;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 var(--text); }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
/* The whole width of the screen (.claude/rules/website.md); only beyond 2000 px does the page stop growing. */
.wrap { max-width: 2000px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 112px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header: a masthead on the content's edges, not a bar of buttons. Brand, three links, language and «Accedi» as text. */
.site-head .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 32px; min-height: 64px; border-bottom: 1px solid var(--line); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
/* The links reach down to the rule, so the current page's coral line sits on it. */
.site-head nav { display: flex; gap: 28px; font-size: 15px; align-self: stretch; }
.site-head nav a, .langs a { color: var(--muted); text-decoration: none; }
.site-head nav a { display: flex; align-items: center; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .langs a:hover { color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tools { justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.langs { margin: 0; display: flex; font-size: 13px; letter-spacing: .04em; font-weight: 600; }
.langs > * { padding: 4px 7px; }
.langs > * + * { border-left: 1px solid var(--line); }
.langs span { color: var(--ink); }
.sign-in { color: var(--ink); font-weight: 600; text-decoration: none; }
.sign-in:hover { color: var(--accent-text); }

/* Footer */
.site-foot { margin-top: clamp(72px, 9vw, 128px); padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 32px; }
.site-foot .brand { font-size: 18px; margin-bottom: 10px; }
.site-foot .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-foot p { margin: 0 0 6px; }
.site-foot h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 12px; font-family: var(--text); font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

/* Phone and watch frames around the screenshots */
.phone { margin: 0; width: 100%; max-width: 330px; padding: 9px; background: var(--bezel); border-radius: 54px;
  box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(28, 28, 30, .55); }
.phone img { display: block; width: 100%; border-radius: 45px; }
/* The watch case is drawn here around the bare screenshot: a rounded case, the screen inset, the crown on the right. */
.watch { position: absolute; margin: 0; width: 168px; padding: 9px; background: #2A2A2D; border-radius: 50px;
  box-shadow: inset 0 0 0 1.5px #45454A, 0 28px 40px -18px rgba(28, 28, 30, .5); }
.watch img { display: block; width: 100%; border-radius: 40px; }
.watch::after { content: ""; position: absolute; right: -5px; top: 27%; width: 6px; height: 20%; background: #3A3A3E; border-radius: 0 4px 4px 0; }

/* Home: hero */
/* The hero fills the first screen, below the header: the phone and the type shrink with a short window. */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  min-height: calc(100svh - 66px); padding: 32px 0; }
.hero h1 { font-size: clamp(48px, min(7.4vw, 11svh), 128px); line-height: .98; letter-spacing: -.035em; margin: 0 0 28px; }
.hero h1 span { display: block; color: var(--muted); }
.hero .lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ink); margin: 0 0 36px; max-width: 30em; }
.hero-art { position: relative; justify-self: center; width: min(100%, 360px, calc((100svh - 130px) / 2.2)); }
.hero-art .watch { left: -112px; bottom: 56px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 7px 20px; border-radius: 14px;
  background: var(--button); color: var(--button-text); text-decoration: none; font-weight: 600; line-height: 1.2; }
.store small { font-weight: 400; font-size: 12px; opacity: .8; }
.store.off { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.store.off small { color: var(--muted); opacity: 1; }
.hero .meta { color: var(--muted); font-size: 15px; margin: 0; max-width: 34em; }

/* Home: what it does, one screen per row */
.tour { margin-top: clamp(72px, 9vw, 136px); background: var(--surface); border-radius: clamp(28px, 4vw, 48px); padding: clamp(32px, 6vw, 96px) clamp(20px, 6vw, 96px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 120px); padding-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.feature .phone { justify-self: center; max-width: 300px; }
.feature.flip > .copy { order: 2; }
.feature h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.028em; margin: 0 0 18px; }
.feature .copy > p { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 30em; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 32em; }
.facts li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 10px; height: 2px; background: var(--accent); }

/* Home: where the data lives (the one dark band) */
.band { margin-top: 24px; background: var(--band); color: var(--band-ink); border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(32px, 6vw, 96px) clamp(20px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.band h2 { color: var(--band-ink); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.028em; margin: 0 0 18px; }
.band p { color: var(--band-muted); font-size: 19px; margin: 0 0 24px; max-width: 30em; }
.band a { color: var(--band-link); }
.band .phone { justify-self: center; max-width: 300px; box-shadow: 0 0 0 1px var(--band-line); }
.places { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--band-line); }
.places li { padding: 14px 0; border-bottom: 1px solid var(--band-line); display: grid; grid-template-columns: 11em 1fr; gap: 4px 16px; }
.places strong { font-weight: 600; }
.places span { color: var(--band-muted); }
.legal-links { font-size: 16px; }

/* Home: who makes it */
.maker { margin-top: clamp(72px, 9vw, 136px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.maker h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.maker p { font-size: 19px; margin: 0 0 16px; max-width: 32em; }

/* Home: four questions, two by two on a wide screen */
.questions { margin-top: clamp(72px, 9vw, 136px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.section-head a { font-weight: 600; font-size: 15px; }
@media (min-width: 900px) { .questions .faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 96px); border-top: 0; } .questions .faq-item:nth-child(-n+2) { border-top: 1px solid var(--line); } }

/* Questions: <details> as ruled rows, no script */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--display); color: var(--accent-text); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 0 20px; color: var(--muted); max-width: 46em; }
.faq-item .answer p { margin: 0; }
.more { color: var(--muted); margin: 20px 0 0; }

/* Plain pages (FAQ, support, delete account) */
.page { padding-top: clamp(24px, 4vw, 56px); }
.page > :is(h1, h2, h3, p, ol, ul, .notice) { max-width: 52rem; }
.page h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.035em; margin: 0 0 20px; }
.page .lead { font-size: clamp(19px, 1.5vw, 22px); color: var(--muted); margin: 0 0 40px; }
.page h2 { font-size: 26px; line-height: 1.15; margin: 48px 0 12px; letter-spacing: -.018em; }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page p, .page ul, .page ol { margin: 0 0 14px; }
.page li { margin-bottom: 6px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; }
.notice p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 2px 46px; margin-bottom: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ink); font: 700 15px/1 var(--display); display: grid; place-items: center; }
.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--button); color: var(--button-text);
  text-decoration: none; font-weight: 600; margin: 4px 0 18px; }
.cta:hover { filter: brightness(1.12); }

/* FAQ page: the topic on the left, its questions on the right */
.topics { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 8px; font-size: 16px; }
.topic { margin-top: 56px; }
@media (min-width: 900px) {
  .topic { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .topic > h2 { position: sticky; top: 24px; margin: 14px 0 0 !important; }
}

/* Code and tables (data deleted or kept, the legal documents) */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 16px 10px 0; text-align: left; vertical-align: top; }
th { font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.page table { max-width: 64rem; }

/* Legal documents: docs/legal, inserted as they are (header, .summary, .toc, .text) */
.legal { padding-top: clamp(24px, 4vw, 56px); padding-bottom: 40px; }
.legal > header { margin-bottom: 28px; }
.legal h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 12px; }
.legal .meta, .legal .note { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -.015em; scroll-margin-top: 16px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal ul, .legal ol { margin: 0 0 12px; }
.legal li { margin-bottom: 5px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 20px; margin: 0 0 16px; }
.legal .summary p:last-child, .legal .summary ul:last-child { margin-bottom: 0; }
.legal .toc { padding: 0; margin: 0 0 24px; font-size: 15px; }
.legal .toc-title { font-weight: 700; margin: 0 0 8px; font-family: var(--display); }
.legal .toc ol { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 24px; border-top: 1px solid var(--line); }
.legal .toc li { margin: 0; break-inside: avoid; border-bottom: 1px solid var(--line); }
.legal .toc a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; }
.legal .toc a:hover { color: var(--accent-text); }
.legal .text { background: var(--surface); border-radius: 24px; padding: 24px 28px; min-width: 0; }
.legal footer { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .legal { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .legal > header { grid-column: 1 / -1; }
  .legal > .summary { grid-column: 2; }
  .legal .toc { grid-column: 1; grid-row: 2 / span 2; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; margin: 0; }
  .legal .toc ol { columns: 1; }
  .legal .text { grid-column: 2; padding: 40px 48px; }
}
@media (max-width: 480px) { .legal .text { padding: 20px 16px; border-radius: 18px; } }

/* Narrow screens: one column, the screenshot after its text */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero, .feature, .band, .maker { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 16px; }
  .hero-art { width: min(68%, 260px); margin-right: 8px; justify-self: end; }
  .hero-art .watch { width: 116px; left: -80px; bottom: 28px; padding: 6px; border-radius: 36px; }
  .hero-art .watch img { border-radius: 30px; }
  .feature .copy > p, .band p, .maker p { font-size: 17px; }
  .feature.flip > .copy { order: 0; }
  .feature .phone, .band .phone { max-width: 260px; }
  .places li { grid-template-columns: 1fr; }
  .site-head .bar { grid-template-columns: 1fr auto; grid-template-rows: 56px 44px; }
  .site-head nav { grid-row: 2; grid-column: 1 / -1; gap: 24px; }
  .site-head { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .store:not(.off), .cta { transition: filter .15s ease; }
}
