/* The home page. privacy.html keeps style.css. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #0e7c66;
  --deep: #0b3d33;
  --mint: #7ad8bf;
  --paper: #f3f7f5;
  --step: #e2ece8;
  --ink: #10201b;
  --soft: #4d5c57;
  --red: #a3201c;

  --m: clamp(16px, 2.2vw, 32px);           /* the page's one pair of outer margins */
  --gap: 20px;

  --t-display: clamp(84px, 13.2vw, 210px);
  --t-head: clamp(36px, 4.6vw, 68px);
  --t-say: clamp(22px, 2.3vw, 34px);
  --t-body: clamp(17px, 1.25vw, 19px);
  --t-small: 15px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { font-family: "Vazirmatn", Tahoma, sans-serif; color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-size: var(--t-body); line-height: 1.75; }
img { display: block; }
h1, h2, p, ul, figure { margin: 0; }
h2 { font-size: var(--t-head); line-height: 1.15; font-weight: 700; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The one button shape: a flat rectangle, square corners. */
.get, .end-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  font-weight: 700; font-size: var(--t-body); text-decoration: none;
  transition: transform .15s var(--ease-out), background-color .15s;
}
.get:hover, .end-btn:hover { transform: translateY(-2px); }
.get:active, .end-btn:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 var(--m) 28px;
  background: var(--green); color: var(--paper);
}
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; position: relative; z-index: 2; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.mark img { border-radius: 8px; outline: 2px solid rgb(255 255 255 / .35); }
.links { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); font-size: var(--t-small); }
.links a:not(.get) { text-decoration: underline 2px transparent; text-underline-offset: 8px; padding-block: 8px; transition: text-decoration-color .2s, text-underline-offset .2s var(--ease-out); }
.links a:not(.get):hover { text-decoration-color: currentColor; text-underline-offset: 5px; }
.get-small { min-height: 44px; padding: 0 20px; font-size: var(--t-small); background: var(--paper); color: var(--ink); }

.statement {
  align-self: start;
  margin-top: 6svh;
  font-size: var(--t-display); line-height: 1.12; font-weight: 700;
  position: relative; z-index: 1;
}
.line { display: block; overflow: hidden; padding-block: .04em .1em; }
.line > span { display: inline-block; }
.l1 { text-align: start; }
.l2 { text-align: end; margin-top: -.22em; }

/* Beside the second line, under the first: the two empty quarters the stepped statement leaves. */
.notes { position: absolute; inset-inline-start: var(--m); top: calc(96px + 6svh + var(--t-display) * 1.2); width: min(380px, 32vw); z-index: 1; }
.note {
  background: var(--paper); color: var(--ink);
  border-radius: 22px; padding: 14px 18px 16px;
  font-size: var(--t-small); line-height: 1.6;
  box-shadow: 0 18px 40px rgb(0 0 0 / .22); /* taste-skill-ignore: Android notification fragment */
}
.note + .note { margin-top: 12px; }
.note strong { display: block; font-size: 16px; }
.note p { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); margin-bottom: 4px; }
.note-head img { border-radius: 4px; }
.note-head.danger { color: var(--red); }
.n1 { transform: rotate(-4deg); }
.n2 { transform: rotate(2deg) translateX(-24px); }
.n3 { transform: rotate(-1.5deg) translateX(10px); }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.7; max-width: 44ch; }
.get-hero { background: var(--mint); color: var(--ink); min-height: 64px; padding: 0 36px; font-size: 19px; flex-shrink: 0; }
.get-hero:hover { background: var(--paper); }

/* ---------- Try a message ---------- */
.try {
  --fg: var(--paper); --bg: var(--deep); --soft-here: rgb(243 247 245 / .78);
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-content: start;
  padding: clamp(72px, 9vw, 140px) var(--m) clamp(220px, 26vw, 380px);
  background: var(--bg); color: var(--fg);
  transition: background-color .45s ease, color .45s ease;
}
.try[data-verdict="suspicious"] { --bg: var(--mint); --fg: var(--ink); --soft-here: var(--soft); }
.try[data-verdict="clean"] { --bg: var(--paper); --fg: var(--ink); --soft-here: var(--soft); }
.try-text { grid-column: 1 / span 6; }
.try-text p { margin-top: 16px; max-width: 46ch; color: var(--fg); }

.try-form { grid-column: 1 / span 6; margin-top: 40px; display: grid; gap: 8px; }
.samples { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.samples legend { padding: 0; margin-bottom: 10px; font-size: var(--t-small); color: var(--soft-here); }
.samples button {
  font: inherit; font-size: var(--t-small); min-height: 44px; padding: 0 16px;
  border: 2px solid currentColor; border-radius: 999px; background: transparent; color: var(--fg);
  cursor: pointer; transition: background-color .15s, color .15s, transform .15s var(--ease-out);
}
.samples button:hover { transform: translateY(-2px); }
.samples button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.try-form label { font-size: var(--t-small); color: var(--soft-here); margin-top: 8px; }
.try-form input, .try-form textarea {
  font: inherit; font-size: 18px; width: 100%;
  padding: 12px 16px; border-radius: 14px; border: 2px solid transparent;
  background: var(--paper); color: var(--ink);
}
.try-form input { text-align: right; max-width: 280px; }
.try-form textarea { resize: vertical; line-height: 1.7; }
.try-form input:focus, .try-form textarea:focus { outline: none; border-color: var(--mint); }

.verdict { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; display: grid; gap: 10px; }
.v-where { font-size: clamp(44px, 5.4vw, 84px); line-height: 1.1; font-weight: 700; }
.v-prob { font-size: var(--t-say); font-weight: 700; }
.v-reasons { color: var(--fg); }
.v-anon-label { margin-top: 18px; font-size: var(--t-small); color: var(--soft-here); }
.v-anon { font-size: var(--t-small); line-height: 1.8; padding: 12px 16px; background: rgb(0 0 0 / .14); border-radius: 14px; }
.try[data-verdict="clean"] .v-anon { background: var(--step); }
.try[data-verdict="suspicious"] .v-anon { background: rgb(255 255 255 / .45); }
.verdict.pop .v-where { animation: pop .5s var(--ease-out); }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } }

/* The sensitivity setting, blown up and cropped by the section's bottom and end edges. */
.dial { position: absolute; inset-inline-end: var(--m); bottom: clamp(40px, 5vw, 80px); font-size: clamp(26px, 5vw, 80px); line-height: 1; display: grid; gap: .25em; }
.dial-label { font-size: .42em; font-weight: 700; color: var(--soft-here); padding-inline-start: .3em; }
.seg { display: flex; padding: .14em; border-radius: 999px; background: rgb(0 0 0 / .22); }
.try[data-verdict="clean"] .seg { background: var(--step); }
.try[data-verdict="suspicious"] .seg { background: rgb(255 255 255 / .5); }
.seg button {
  font: inherit; font-weight: 700; border: 0; cursor: pointer;
  padding: .3em .9em .38em; border-radius: 999px;
  background: transparent; color: var(--fg);
  transition: background-color .25s, color .25s, transform .15s var(--ease-out);
}
.seg button:hover { transform: scale(1.03); }
.seg button[aria-checked="true"] { background: var(--mint); color: var(--ink); }
.try[data-verdict="suspicious"] .seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }

/* ---------- The path of one ad ---------- */
.path { display: flex; }
.field { position: relative; flex: 1 1 25%; min-height: 84svh; padding: 40px 28px 28px; display: flex; flex-direction: column; }
.f1 { background: var(--mint); color: var(--ink); }
.f2 { background: var(--green); color: var(--paper); }
.f3 { background: var(--deep); color: var(--paper); }
.f4 { background: var(--step); color: var(--ink); }
.field h2 { font-size: var(--t-say); }
.card {
  position: absolute; top: 34%; inset-inline: 0; margin-inline: auto; width: min(270px, calc(100% - 40px));
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: 14px 16px;
  font-size: var(--t-small); line-height: 1.65;
  transition: translate .15s var(--ease-out);
}
.field:hover .card { translate: 0 -6px; }
.card p { margin: 4px 0 8px; }
.c-from { display: block; font-weight: 700; }
.c-meta { display: block; font-size: 13px; color: var(--soft); }
.c-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 0 10px; border-radius: 999px; background: var(--deep); color: var(--paper); margin-bottom: 6px; }
.c-score { display: block; height: 8px; border-radius: 4px; background: var(--step); margin-bottom: 8px; overflow: hidden; }
.c-score span { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--red); }
.c-anon { background: var(--step); padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.c-actions { display: flex; gap: 6px; }
.c-actions span { padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--step); }
.c-actions span:first-child { background: var(--green); color: var(--paper); }
.clause { margin-top: auto; font-size: var(--t-say); line-height: 1.35; font-weight: 700; max-width: 12em; }

/* ---------- Scams ---------- */
.scam {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  padding: clamp(96px, 11vw, 180px) var(--m);
  background: var(--red); color: var(--paper);
}
.scam-text { grid-column: 1 / span 6; }
.scam-text > p { margin-top: 20px; max-width: 48ch; }
.signs { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 10px; }
.signs li { background: rgb(0 0 0 / .2); padding: 14px 18px; }
.thread {
  grid-column: 8 / span 4;
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 18px 18px 22px;
  rotate: 3deg; box-shadow: 0 24px 60px rgb(0 0 0 / .28); /* taste-skill-ignore: the app's thread screen, lifted off the page */
}
.t-head { font-weight: 700; padding: 10px 14px; margin: -4px -4px 14px; background: var(--step); border-radius: 14px; }
.t-warn { background: #fbe3e1; color: #6e1411; border-radius: 16px; padding: 12px 14px; font-size: var(--t-small); line-height: 1.7; }
.t-warn strong { display: block; color: var(--red); }
.t-bubble { margin-top: 14px; margin-inline-end: 24px; background: var(--step); border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-size: 16px; }
.t-link { color: var(--red); text-decoration: underline; }
.t-time { font-size: 13px; color: var(--soft); margin-top: 6px; }

/* ---------- Settings as sentences ---------- */
.switches { padding-top: clamp(96px, 10vw, 160px); }
.switches h2 { padding-inline: var(--m); margin-bottom: 40px; }
.band {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  min-height: max(20vh, 132px); padding: 20px var(--m);
  transition: background-color .35s ease, color .35s ease;
  color: var(--ink);
}
.b-text { display: contents; }
.b-say { grid-column: 1 / span 6; }
.b-then { grid-column: 7 / span 5; }
.toggle { grid-column: 12; justify-self: end; }
.band[data-on="true"] { color: var(--paper); }
.band:nth-of-type(1)[data-on="true"] { background: var(--green); }
.band:nth-of-type(2)[data-on="true"] { background: var(--mint); color: var(--ink); }
.band:nth-of-type(3)[data-on="true"] { background: var(--deep); }
.band:nth-of-type(4)[data-on="true"] { background: var(--red); }
.band:nth-of-type(5)[data-on="true"] { background: var(--ink); }
.b-say { font-size: var(--t-say); font-weight: 700; line-height: 1.4; }
.b-then { font-size: var(--t-body); opacity: .5; transition: opacity .35s ease; }
.band[data-on="true"] .b-then { opacity: 1; }
.toggle {
  flex-shrink: 0; position: relative; width: 2.1em; height: 1.2em; font-size: var(--t-say);
  border: 0; border-radius: 999px; background: #b9c7c2; cursor: pointer; padding: 0;
  transition: background-color .25s;
}
.toggle span { position: absolute; top: .12em; inset-inline-start: .12em; width: .96em; height: .96em; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-out); }
.toggle[aria-checked="true"] { background: var(--paper); }
.toggle[aria-checked="true"] span { transform: translateX(-.9em); background: var(--ink); }
.band:nth-of-type(2) .toggle[aria-checked="true"] { background: var(--ink); }
.band:nth-of-type(2) .toggle[aria-checked="true"] span { background: var(--mint); }
.toggle::after { content: ""; position: absolute; inset: -12px; }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start;
  padding: clamp(120px, 12vw, 200px) var(--m);
}
.faq h2 { grid-column: 1 / span 4; position: sticky; top: 96px; }
.tiles { grid-column: 5 / span 8; display: grid; gap: 8px; }
.tiles details { background: var(--step); transition: background-color .2s; }
.tiles details[open] { background: var(--mint); }
.tiles summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 20px; font-weight: 700;
}
.tiles summary::-webkit-details-marker { display: none; }
/* The plus: two 3px bars. Open, the upright one turns flat and it reads as a minus. */
.tiles summary { position: relative; padding-inline-end: 64px; }
.tiles summary::before, .tiles summary::after {
  content: ""; position: absolute; inset-inline-end: 24px; top: 50%;
  width: 16px; height: 3px; margin-top: -1.5px; background: currentColor;
  transition: transform .2s var(--ease-out);
}
.tiles summary::after { transform: rotate(90deg); }
.tiles details[open] summary::after { transform: rotate(0); }
.tiles summary:hover { background: rgb(0 0 0 / .04); }
.tiles details p { padding: 0 24px 24px; max-width: 58ch; font-size: 17px; }

/* ---------- Get it ---------- */
.start {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  min-height: 90svh; padding: clamp(72px, 8vw, 120px) var(--m);
  background: var(--mint); color: var(--ink);
}
.start-text { grid-column: 1 / span 5; align-self: end; }
.start-text h2 { font-size: clamp(52px, 6.6vw, 108px); line-height: 1.1; }
.start-text p { margin-top: 20px; max-width: 40ch; }
.dialog {
  grid-column: 7 / span 5; justify-self: center; width: min(440px, 100%);
  background: var(--paper); border-radius: 28px; padding: 28px;
  box-shadow: 0 30px 70px rgb(11 61 51 / .3); /* taste-skill-ignore: the app's own dialog */
  display: grid; gap: 14px;
}
.dialog img { border-radius: 12px; }
.dialog strong { font-size: 24px; }
.dialog p { color: var(--soft); font-size: 16px; }
.d-sens { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--t-small); font-weight: 700; }
.d-seg { display: flex; background: var(--step); border-radius: 999px; padding: 4px; }
.d-seg span { padding: 4px 14px; border-radius: 999px; }
.d-seg .on { background: var(--green); color: var(--paper); }
.get-dialog { background: var(--ink); color: var(--paper); min-height: 56px; margin-top: 6px; }
.get-dialog:hover { background: var(--green); }

/* ---------- Footer ---------- */
.end {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(72px, 8vw, 120px) var(--m) 0;
  background: var(--ink); color: var(--paper);
}
.end-top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.end-say { font-size: clamp(40px, 5vw, 76px); font-weight: 700; line-height: 1.2; }
.end-btn { margin-top: 28px; background: var(--paper); color: var(--ink); }
.end-btn:hover { background: var(--mint); }
.end-links { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 17px; }
.end-links a { text-decoration: none; display: inline-block; padding-block: 6px; transition: color .15s, transform .15s var(--ease-out); }
.end-links a:hover { color: var(--mint); transform: translateX(-4px); }
.end-legal { margin-top: clamp(96px, 12vw, 200px); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: rgb(243 247 245 / .72); padding-bottom: 8px; }
.end-name {
  font-size: clamp(110px, 23vw, 400px); font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--green); margin-bottom: -.3em; text-align: center;
}

/* ---------- Motion ---------- */
.js .line > span { transform: translateY(105%); }
.js .ready .line > span, .js.ready .line > span { transform: none; transition: transform .9s var(--ease-out); }
.js.ready .l2 > span { transition-delay: .11s; }
.js .hero-foot, .js .notes { opacity: 0; }
.js.ready .hero-foot, .js.ready .notes { opacity: 1; transition: opacity .6s ease .5s; }
.notes .note { animation: drift 7s ease-in-out infinite alternate; }
.notes .n2 { animation-delay: -2.5s; }
.notes .n3 { animation-delay: -5s; }
@keyframes drift { to { translate: 0 -10px; } }

.js .rise { opacity: 0; transform: translateY(24px); }
.js .in .rise, .js .rise.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .line > span, .js .rise { transform: none !important; opacity: 1 !important; }
  .js .hero-foot, .js .notes { opacity: 1; }
  .notes .note, .verdict.pop .v-where { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero { min-height: auto; display: flex; flex-direction: column; padding-bottom: 56px; }
  .statement { order: 1; }
  .hero-foot { order: 2; margin-top: 48px; }
  .notes { order: 3; position: relative; inset: auto; width: min(440px, 100%); margin: 56px 0 0; }
  .try-text, .try-form { grid-column: 1 / -1; }
  .verdict { grid-column: 1 / -1; grid-row: auto; margin-top: 40px; }
  .path { flex-wrap: wrap; }
  .field { flex-basis: 50%; min-height: 64svh; }
  .scam-text { grid-column: 1 / span 7; }
  .thread { grid-column: 8 / -1; }
  .faq h2 { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .tiles { grid-column: 1 / -1; }
  .start-text { grid-column: 1 / -1; align-self: start; }
  .dialog { grid-column: 1 / -1; justify-self: start; margin-top: 48px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --gap: 12px; --t-display: 19vw; }
  .links a:not(.get) { display: none; }
  .statement { margin-top: 5svh; line-height: 1.15; }
  .l2 { text-align: start; }
  .hero-foot { margin-top: 24px; }
  .notes { width: auto; margin: 48px 4px 0; }
  .note p { white-space: normal; }
  .n2 { transform: rotate(2deg); }
  .n3 { display: none; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .lede { font-size: 18px; }
  .get-hero { width: 100%; }

  .try { padding-bottom: 200px; }
  .dial { font-size: 9vw; bottom: 48px; }

  .path { flex-direction: column; }
  .field { min-height: 64svh; padding: 32px 20px 28px; }
  .field h2 { font-size: 26px; margin-bottom: 12px; }
  .card { position: relative; top: auto; inset: auto; margin: 0; order: 2; margin-top: 32px; }
  .clause { order: 1; margin-top: 0; font-size: 24px; }
  .field h2 { order: 0; }

  .scam-text, .thread { grid-column: 1 / -1; }
  .thread { margin-top: 56px; rotate: 2deg; }

  .b-say { font-size: 6.4vw; grid-column: 1 / span 9; }
  .toggle { font-size: 26px; grid-column: 10 / -1; grid-row: 1; }
  .b-then { grid-column: 1 / -1; font-size: 15px; margin-top: 6px; }

  .start { min-height: 84svh; }
  .start-text h2 { font-size: 13vw; }
  .dialog { width: 100%; }

  .end-top { flex-direction: column; }
  .end-btn { width: 100%; }
  .end-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
  .end-legal { flex-direction: column; gap: 2px; font-size: 13px; }
  .end-name { font-size: 27vw; }
}
