/* tabphone.io: the brand's colors (tabphone-logo/README.md), light and dark. */
:root {
  --tangerine: #ff5a1f;
  --tangerine-deep: #e64a12;
  --peach: #ffb89e;
  --ink: #0f1420;
  --bg: #ffffff;
  --bg-soft: #fff6f2;
  --bg-card: #ffffff;
  --text: #0f1420;
  --text-2: #4a5263;
  --line: #e7e2df;
  --shadow: 0 1px 2px rgb(15 20 32 / 6%), 0 12px 32px rgb(15 20 32 / 8%);
  --radius: 16px;
  --head: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --bg-soft: #151b29;
    --bg-card: #171e2d;
    --text: #f3f4f7;
    --text-2: #a8afbf;
    --line: #262e40;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tangerine-deep);
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--peach);
  }
}

h1,
h2,
h3 {
  font-family: var(--head);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 760px;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 14px;
}

.on-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .on-light {
    display: none;
  }
  .on-dark {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font: 600 16px/1 var(--body);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--tangerine);
  border-color: var(--tangerine);
  color: #fff;
  box-shadow: 0 6px 18px rgb(255 90 31 / 30%);
}

.btn.primary:hover {
  background: var(--tangerine-deep);
}

.btn.small {
  padding: 9px 16px;
  font-size: 14px;
}

.btn.wide {
  width: 100%;
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 2px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a,
.link-quiet {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover,
.link-quiet:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .nav-in {
    justify-content: space-between;
    gap: 12px;
  }
  .nav-logo img {
    height: 26px;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgb(255 90 31 / 14%), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgb(255 184 158 / 18%), transparent 70%);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgb(255 90 31 / 10%);
  color: var(--tangerine-deep);
  font-weight: 600;
  font-size: 14px;
}

/* Rotating taglines: the pill grows or shrinks to each one, and its slot keeps
   the tallest one's height, so the headline below never moves. */
.eyebrow-slot {
  margin: 0 0 18px;
}

.eyebrow.rotating {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  transition: width 0.45s ease;
}

.eyebrow.rotating > span {
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.eyebrow.rotating > span:not(.on) {
  position: absolute;
  top: 6px;
  left: 12px;
}

.eyebrow.rotating > span.on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow.rotating,
  .eyebrow.rotating > span {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--peach);
    background: rgb(255 90 31 / 16%);
  }
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
}

.hl {
  color: var(--tangerine);
}

.lede {
  margin: 22px 0 30px;
  font-size: 19px;
  color: var(--text-2);
  max-width: 34em;
}

.lede strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-2);
  font-size: 15px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--tangerine);
}

.hero-shot {
  position: relative;
  padding-bottom: 40px;
}

.browser {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 30px 80px rgb(15 20 32 / 18%);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser-bar span {
  margin: 0 auto;
  padding: 2px 14px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  transform: translateX(-20px);
}

.handset {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 27%;
  margin: 0;
  padding: 6px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 24px 60px rgb(15 20 32 / 35%);
}

.handset img {
  border-radius: 22px;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 56px;
  }
  /* Stacked: the badge comes right after the text, before the screenshots. */
  .hero-side {
    display: flex;
    flex-direction: column;
  }
  .hero-apps {
    order: -1;
    justify-content: flex-start;
    margin: 0 0 32px;
  }
  .hero-in {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .handset {
    right: 0;
  }
}

/* Google's "Get it on Google Play" badge: its image has a transparent margin
   (about a sixth of its height), offset so the black badge lines up. */
.play-badge {
  display: inline-block;
  line-height: 0;
}

.play-badge img {
  width: 170px;
  max-width: none;
  height: 66px;
  margin: -11px;
}

.hero-apps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: 15px;
}

.final-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
}

/* Sections */
section {
  padding: 88px 0;
}

.section-h {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  text-align: center;
  max-width: 18em;
  margin: 0 auto;
}

.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 18px;
  margin: 14px auto 0;
  max-width: 36em;
}

.cards {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: block;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgb(255 90 31 / 12%);
  color: var(--tangerine);
}

a.card {
  transition: transform 0.15s, border-color 0.15s;
}

a.card:hover {
  transform: translateY(-2px);
  border-color: var(--peach);
}

.go {
  display: inline-block;
  margin-top: 16px;
  color: var(--tangerine-deep);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .go {
    color: var(--peach);
  }
}

.soon,
.new {
  font: 600 12px/1 var(--body);
  letter-spacing: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.new {
  background: var(--tangerine);
  border-color: var(--tangerine);
  color: #fff;
}

@media (max-width: 900px) {
  .cards.three {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
}

/* Features */
.features {
  background: var(--bg-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
  margin-top: 56px;
}

.feat svg {
  width: 28px;
  height: 28px;
  color: var(--tangerine);
}

.feat h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat p {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Pricing */
.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}

.price-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.price-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 90 31 / 45%), transparent 70%);
}

.price-label {
  margin: 0;
  color: var(--peach);
  font-weight: 600;
}

.price {
  margin: 6px 0 4px;
  font-family: var(--head);
}

.price strong {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price span {
  font-size: 20px;
  color: #c4c9d4;
}

.price-note {
  margin: 0 0 24px;
  color: #c4c9d4;
  font-size: 15px;
}

.price-incl {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.price-incl li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-incl svg {
  width: 18px;
  height: 18px;
  color: var(--tangerine);
}

.price-table {
  padding: 12px 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-weight: 500;
}

td {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

td span {
  color: var(--text-2);
  font-weight: 400;
}

.price-example {
  margin: 20px 0 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
}

@media (max-width: 860px) {
  .price-layout {
    grid-template-columns: 1fr;
  }
  .price-table {
    padding: 8px 20px 20px;
  }
}

/* Apps */
.apps {
  background: var(--bg-soft);
}

/* FAQ */
.faq .section-h {
  margin-bottom: 36px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 26px/1 var(--body);
  color: var(--tangerine);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

details p {
  margin: 0 0 20px;
  color: var(--text-2);
}

/* Final call to action */
.final {
  padding: 24px 0 96px;
}

.final-in {
  text-align: center;
  padding: 64px 24px;
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgb(255 90 31 / 40%), transparent 70%);
  background-color: var(--ink);
  color: #fff;
}

.final h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

.final p {
  margin: 12px 0 28px;
  color: #c4c9d4;
  font-size: 18px;
}

.final-in.wrap {
  max-width: 1120px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.foot img {
  height: 24px;
  width: auto;
}

.foot p {
  margin: 10px 0 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.foot-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}

.foot-links a:hover {
  color: var(--text);
}

/* TabPhone vs Google Voice */
.center {
  text-align: center;
}

.hero-cta.center {
  justify-content: center;
}

.compare-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.compare-hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
}

.why .cards {
  margin-top: 40px;
}

.why .card h3 {
  font-size: 20px;
}

.compare {
  background: var(--bg-soft);
}

.compare-scroll {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.compare-table {
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: var(--text-2);
}

.compare-table thead th {
  font: 700 20px/1.2 var(--head);
  color: var(--text);
  border-bottom: 2px solid var(--line);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  width: 22%;
}

.compare-table .us {
  background: rgb(255 90 31 / 6%);
  color: var(--text);
  font-weight: 500;
  width: 39%;
}

.compare-table thead .us {
  color: var(--tangerine);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.example-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.example-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.example-card.us {
  border-color: var(--tangerine);
  box-shadow: 0 0 0 3px rgb(255 90 31 / 15%), var(--shadow);
}

.example-card .price-label {
  color: var(--tangerine-deep);
}

.example-total {
  margin: 4px 0 8px;
  font: 800 48px/1.1 var(--head);
  letter-spacing: -0.03em;
}

.example-total span {
  font: 400 18px var(--body);
  letter-spacing: 0;
  color: var(--text-2);
}

.example-card p:last-child {
  margin: 0;
  color: var(--text-2);
}

.fair {
  padding-top: 24px;
}

/* Phones: each row is a card, with its two answers labeled. */
@media (max-width: 640px) {
  .compare-scroll {
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .compare-table {
    min-width: 0;
  }
  .compare-table thead {
    display: none;
  }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto !important;
  }
  .compare-table tr {
    margin-bottom: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-card);
    overflow: hidden;
  }
  .compare-table tbody th {
    padding-bottom: 6px;
    border: 0;
    font: 700 18px/1.2 var(--head);
  }
  .compare-table td {
    padding: 10px 20px 14px;
    border: 0;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
  }
  .compare-table td.us::before {
    color: var(--tangerine);
  }
}

@media (max-width: 640px) {
  .example-cols {
    grid-template-columns: 1fr;
  }
}

/* A dotted phrase that explains itself on hover, focus or tap. */
.tip {
  position: relative;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline dotted var(--tangerine);
  text-underline-offset: 4px;
  cursor: help;
  outline: none;
}

.tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: min(260px, 80vw);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: 500 14px/1.4 var(--body);
  text-align: left;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(calc(-50% + var(--shift, 0px)), 4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}

.tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: calc(50% - var(--shift, 0px));
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}

.tip:hover .tip-bubble,
.tip:focus .tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--shift, 0px)), 0);
}

.tip:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .tip-bubble {
    background: #f3f4f7;
    color: var(--ink);
  }
  .tip-bubble::after {
    border-top-color: #f3f4f7;
  }
}

/* The 404 page */
.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.lost h1 {
  font-size: 48px;
  font-weight: 800;
}

.lost p {
  color: var(--text-2);
  margin: 12px 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  a.card {
    transition: none;
  }
}

/* The ink cards on the dark page: an edge, so they don't melt into it. */
@media (prefers-color-scheme: dark) {
  .price-card,
  .final-in {
    border: 1px solid var(--line);
    background-color: #0a0e17;
  }
}
