/* ==========================================================================
   InTag — Landing page (fusa)
   Concept: "La scrivania docked su LinkedIn".
   Palette chiara V2 (#0a66c2) + animazioni reveal-on-scroll e hover da V1.
   Font: Inter.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand blue */
  --blue-50:  #eaf3fc;
  --blue-100: #d6e8f9;
  --blue-200: #b9d7f2;
  --blue-500: #1f76d1;
  --blue-600: #0a66c2;
  --blue-700: #08529b;
  --blue-800: #003d78;

  /* Neutri freddi */
  --ink:      #16283b;
  --slate-800:#233649;
  --slate-700:#33475b;
  --slate-500:#5d7086;
  --slate-400:#8493a5;
  --border:   #dce4ec;
  --border-strong:#c6d2de;
  --surface:  #f4f7fa;
  --surface-2:#eef3f8;
  --white:    #ffffff;

  /* Colori dei tag */
  --tag-todo-bg:#fdf0dd; --tag-todo-fg:#8a5a12; --tag-todo-dot:#e8912d;
  --tag-wip-bg: #e2eefb; --tag-wip-fg: #0a4a8f; --tag-wip-dot: #0a66c2;
  --tag-done-bg:#dcf3e8; --tag-done-fg:#166b48; --tag-done-dot:#1a8a5c;

  /* Struttura */
  --maxw: 1120px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(22,40,59,.06), 0 1px 3px rgba(22,40,59,.08);
  --shadow-md: 0 6px 20px rgba(22,40,59,.08), 0 2px 6px rgba(22,40,59,.06);
  --shadow-lg: 0 18px 50px rgba(16,40,66,.16), 0 6px 16px rgba(16,40,66,.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--slate-700); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-700); background: var(--blue-50);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--slate-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px rgba(10,102,194,.28); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,102,194,.34); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--blue-50); transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 1.06rem; border-radius: 14px; }
.btn__ico { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: contain; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 12px rgba(22,40,59,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 30px; height: 30px; flex: none; object-fit: contain; border-radius: 6px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: var(--slate-700); font-weight: 600; font-size: .96rem; transition: color .2s ease; }
.nav__links a:hover { color: var(--blue-700); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 78% -10%, var(--blue-50), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: clamp(52px, 7vw, 92px);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 800; }
.hero h1 .accent { color: var(--blue-600); }
.hero__sub { font-size: 1.18rem; color: var(--slate-700); margin-top: 20px; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; color: var(--slate-500); font-size: .92rem; font-weight: 500; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--blue-600); }

/* ---------- Window / mockup ---------- */
.window {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; background: #cdd8e3; }
.window__url { margin-left: 8px; font-size: .82rem; color: var(--slate-500); background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 5px 12px; font-weight: 500; }
.window__body { display: grid; grid-template-columns: 1fr 264px; gap: 0; background: var(--surface); }

/* fake LinkedIn-style profile */
.profile { padding: 20px; }
.profile__cover { height: 68px; border-radius: 12px 12px 0 0; background: linear-gradient(120deg, var(--blue-800), var(--blue-600)); }
.profile__card { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-top: -34px; padding: 0 18px 18px; box-shadow: var(--shadow-sm); }
.profile__avatar { width: 74px; height: 74px; border-radius: 50%; border: 3px solid #fff; background: var(--blue-100); margin-top: -34px; display: grid; place-items: center; color: var(--blue-700); font-weight: 800; font-size: 1.5rem; }
.profile__name { font-weight: 800; font-size: 1.16rem; margin-top: 10px; color: var(--ink); }
.profile__headline { color: var(--slate-500); font-size: .92rem; }
.profile__row { display: flex; gap: 8px; margin-top: 14px; }
.profile__pill { height: 30px; border-radius: 999px; padding: 0 16px; display: inline-flex; align-items: center; font-size: .82rem; font-weight: 600; }
.profile__pill.solid { background: var(--blue-600); color: #fff; }
.profile__pill.outline { border: 1px solid var(--border-strong); color: var(--slate-700); }
.profile__skeleton { margin-top: 18px; display: grid; gap: 9px; }
.profile__skeleton i { height: 10px; border-radius: 6px; background: #e6edf4; display: block; }
.profile__skeleton i:nth-child(1){ width: 90%; } .profile__skeleton i:nth-child(2){ width: 78%; } .profile__skeleton i:nth-child(3){ width: 84%; }

/* The InTag panel */
.intag-panel { background: #fff; border-left: 1px solid var(--border); padding: 16px 15px; display: flex; flex-direction: column; }
.intag-panel__head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--surface-2); }
.intag-panel__logo { width: 22px; height: 22px; }
.intag-panel__title { font-weight: 800; color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }
.intag-panel__badge { margin-left: auto; font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); padding: 3px 7px; border-radius: 6px; }
.field { margin-top: 14px; }
.field__label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); margin-bottom: 6px; }
.field textarea {
  width: 100%; min-height: 74px; resize: none; border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .9rem; color: var(--slate-800);
  background: var(--surface); line-height: 1.45;
}
.tag-select { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; border: 1px solid transparent; cursor: default;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tag:hover { transform: translateY(-1px); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tag--todo { background: var(--tag-todo-bg); color: var(--tag-todo-fg); } .tag--todo .dot { background: var(--tag-todo-dot); }
.tag--wip  { background: var(--tag-wip-bg);  color: var(--tag-wip-fg);  } .tag--wip .dot  { background: var(--tag-wip-dot); }
.tag--done { background: var(--tag-done-bg); color: var(--tag-done-fg); } .tag--done .dot { background: var(--tag-done-dot); }
.tag[aria-pressed="true"], .tag.is-active { box-shadow: 0 0 0 2px var(--blue-600); }
.intag-panel__save {
  margin-top: 16px; width: 100%; border: none; border-radius: 10px; padding: 12px;
  background: var(--blue-600); color: #fff; font: inherit; font-weight: 700; font-size: .94rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(10,102,194,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.intag-panel__save:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10,102,194,.34); }
.intag-panel__save svg { width: 17px; height: 17px; }
.intag-panel__hint { margin-top: 10px; font-size: .74rem; color: var(--slate-400); text-align: center; }

/* ---------- Problem ---------- */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.pain-list { display: grid; gap: 14px; margin-top: 24px; }
.pain-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--slate-700); }
.pain-list svg { width: 22px; height: 22px; flex: none; color: var(--blue-600); margin-top: 2px; }
.pain-list b { color: var(--ink); }
/* Excel ghost card */
.excel { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.excel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.excel__bar { background: #1b6b45; color: #fff; padding: 10px 14px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.excel__bar svg { width: 16px; height: 16px; }
.excel table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.excel th, .excel td { border: 1px solid #e4e9ee; padding: 8px 10px; text-align: left; color: var(--slate-700); }
.excel th { background: var(--surface-2); font-weight: 700; color: var(--slate-800); }
.excel td.muted { color: var(--slate-400); font-style: italic; }
.excel .dupe { background: #fdecec; color: #b4342f; }
.excel__note { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #fdf0dd; color: #8a5a12; font-size: .82rem; font-weight: 600; }
.excel__note svg { width: 16px; height: 16px; flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.step__num { width: 38px; height: 38px; border-radius: 11px; background: var(--blue-600); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .98rem; }
.how__mock { margin-top: 44px; }
.how__caption { text-align: center; color: var(--slate-500); font-size: .9rem; margin-top: 14px; }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.compare__col:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.compare__col.is-us { border: 2px solid var(--blue-600); box-shadow: var(--shadow-md); }
.compare__tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); }
.compare__col.is-us .compare__tag { color: var(--blue-700); }
.compare__name { font-size: 1.3rem; font-weight: 800; margin: 6px 0 2px; }
.compare__price { font-size: 2rem; font-weight: 800; color: var(--ink); }
.compare__price small { font-size: .95rem; font-weight: 600; color: var(--slate-500); }
.compare__year { color: var(--slate-500); font-size: .9rem; margin-bottom: 18px; }
.compare ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.compare li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--slate-700); }
.compare li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.ic-yes { color: #1a8a5c; } .ic-no { color: #b0362f; } .ic-dash { color: var(--slate-400); }
.compare__honest { margin-top: 26px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; color: var(--slate-800); }
.compare__honest b { color: var(--blue-800); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin-inline: auto; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.is-featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow-lg); }
.plan.is-featured:hover { box-shadow: 0 22px 60px rgba(10,102,194,.18), var(--shadow-lg); }
.plan__flag { position: absolute; top: -13px; left: 28px; background: var(--blue-600); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan__name { font-size: 1.15rem; font-weight: 800; }
.plan__price { font-size: 2.6rem; font-weight: 800; margin: 10px 0 2px; color: var(--ink); }
.plan__price small { font-size: 1rem; font-weight: 600; color: var(--slate-500); }
.plan__note { color: var(--slate-500); font-size: .9rem; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-700); font-size: .98rem; }
.plan li svg { width: 19px; height: 19px; color: #1a8a5c; flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--free .btn { background: #fff; color: var(--blue-700); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.plan--free .btn:hover { background: var(--blue-50); }
.pricing__foot { text-align: center; color: var(--slate-500); font-size: .92rem; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__q { width: 100%; background: none; border: none; text-align: left; font: inherit; font-weight: 700; font-size: 1.04rem; color: var(--ink); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq__q svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; transition: transform .25s ease; }
.faq__item[open] .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--slate-700); font-size: .99rem; }
.faq__a p + p { margin-top: 10px; }
.faq__q::-webkit-details-marker { display: none; }
summary.faq__q { list-style: none; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-800), var(--blue-600)); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 60px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe9f8; max-width: 52ch; margin-inline: auto; margin-top: 12px; }
.cta-band .btn { margin-top: 26px; }
.cta-band .btn--primary { background: #fff; color: var(--blue-700); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.cta-band .btn--primary:hover { background: #eef5fd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d3df; padding-block: 52px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.footer__brand .brand__logo { width: 28px; height: 28px; }
.site-footer p { color: #9fb0c1; font-size: .93rem; margin-top: 12px; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer__col a { color: #c7d3df; display: block; margin-bottom: 10px; font-size: .95rem; transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8ea0b3; }
.footer__disclaimer { max-width: 640px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.legal .updated { color: var(--slate-500); font-size: .92rem; margin-top: 8px; }
.legal h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--slate-700); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; }
.legal a { text-decoration: underline; }
.legal .callout { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 18px 20px; margin-top: 20px; }
.legal .callout p { margin-top: 0; color: var(--slate-800); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); font-weight: 700; color: var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; margin-bottom: 8px; }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--blue-700); padding: 10px 16px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow-md); }
.skip:focus { left: 8px; }

/* ==========================================================================
   REVEAL ON SCROLL (da V1, adattato alla palette chiara V2)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ── Safe-area helpers (notched phones) ── */
@supports (padding: env(safe-area-inset-top)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .cta-band { margin-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__mockup { order: 2; }
  .problem__grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand-col { grid-column: 1 / -1; }
}

/* ── Tablet / small desktop ── */
@media (max-width: 720px) {
  /* Nav: collapse links + CTA into hamburger */
  .nav__links,
  .nav__cta .btn--primary { display: none; }
  .nav__toggle { display: inline-flex; }

  /* Hamburger open state */
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: 14px 20px 20px;
    box-shadow: var(--shadow-md); z-index: 40;
  }
  .nav.is-open .nav__links a {
    padding: 12px 0; width: 100%; font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links a:last-of-type {
    border-bottom: none;
  }

  /* Language switcher inside hamburger menu */
  .nav.is-open .nav__links .lang-switch {
    width: 100%; padding-top: 12px; margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .nav.is-open .nav__links .lang-switch .lang-switch__btn {
    width: 100%; justify-content: center; padding: 10px 0;
    font-size: 1rem; border-radius: 10px;
  }
  .nav.is-open .nav__links .lang-switch .lang-switch__menu {
    position: static; box-shadow: none; border: 1px solid var(--border);
    margin-top: 8px; min-width: 100%;
  }

  /* Mockup: single-column panel */
  .window__body { grid-template-columns: 1fr; }
  .intag-panel { border-left: none; border-top: 1px solid var(--border); }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; }
}

/* ── Mobile phones ── */
@media (max-width: 576px) {
  .container { padding-inline: 16px; }
  .section { padding-block: clamp(40px, 6vw, 72px); }

  /* Hero */
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .hero__sub { font-size: 1.05rem; }
  .hero__meta { gap: 14px; font-size: .85rem; }

  /* Mockup window */
  .window { border-radius: var(--radius); }
  .window__bar { padding: 10px 12px; }
  .window__url { font-size: .75rem; padding: 4px 8px; }
  .profile { padding: 14px; }
  .profile__cover { height: 50px; }
  .profile__avatar { width: 60px; height: 60px; font-size: 1.2rem; margin-top: -28px; }
  .profile__name { font-size: 1.05rem; }
  .intag-panel { padding: 12px; }
  .field textarea { min-height: 60px; font-size: .85rem; }
  .tag { padding: 5px 9px; font-size: .75rem; }

  /* Steps */
  .step { padding: 20px 18px; }
  .step__num { width: 34px; height: 34px; font-size: .95rem; }

  /* Comparison */
  .compare__col { padding: 22px 18px; }
  .compare__price { font-size: 1.7rem; }

  /* Pricing */
  .plan { padding: 24px 20px; }
  .plan__price { font-size: 2.2rem; }

  /* FAQ */
  .faq__q { padding: 16px 18px; font-size: .98rem; }
  .faq__a { padding: 0 18px 16px; }

  /* CTA band */
  .cta-band { padding: clamp(28px, 5vw, 40px); border-radius: var(--radius); }
  .cta-band .btn { margin-top: 20px; }

  /* Footer */
  .site-footer { padding-block: 40px 24px; }

  /* Legal */
  .legal { padding-block: clamp(32px, 5vw, 56px); }
  .legal h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
}

/* ── Small phones (< 400px) ── */
@media (max-width: 400px) {
  body { font-size: 15px; }
  .container { padding-inline: 14px; }

  /* Full-width buttons */
  .btn { width: 100%; padding: 13px 18px; }
  .btn--lg { padding: 15px 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; }

  /* Smaller nav brand on tiny screens */
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand__logo { width: 26px; height: 26px; }

  /* Steps: stack number + text tighter */
  .step__num { margin-bottom: 12px; }

  /* Plan list items: tighter */
  .plan li { font-size: .92rem; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; margin-left: auto; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--slate-700); cursor: pointer; transition: border-color .2s ease, background .2s ease; min-height: 36px; }
.lang-switch__btn:hover { border-color: var(--blue-600); background: var(--blue-50); }
.lang-switch__btn svg { width: 14px; height: 14px; flex: none; }
.lang-switch__menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.1); padding: 6px; z-index: 100; min-width: 150px; }
.lang-switch.is-open .lang-switch__menu { display: block; }
.lang-switch__menu button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; padding: 10px 12px; border-radius: 7px; font-size: .9rem; font-weight: 500; color: var(--slate-700); cursor: pointer; text-align: left; transition: background .15s ease; min-height: 40px; }
.lang-switch__menu button:hover { background: var(--blue-50); }
.lang-switch__menu button.is-active { background: var(--blue-50); color: var(--blue-700); font-weight: 700; }

/* ---------- Browser not supported banner ---------- */
.browser-banner { display: none; background: var(--blue-50); border-bottom: 1px solid var(--blue-100); padding: 10px 20px; text-align: center; font-size: .9rem; color: var(--slate-700); }
.browser-banner.is-visible { display: block; }
.browser-banner a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }

/* ---------- Hidden utility ---------- */
.u-hidden { display: none !important; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
