/* =========================================================
   PNGmail.net — stylesheet
   Design concept: the independent postal stamp.
   An email address is treated like a stamped, addressed
   envelope that travels with you no matter who carries it —
   PNG's postal service metaphor applied to email.
   ========================================================= */

:root{
  --ink:        #142B2E;   /* deep harbour teal-black, headings & body text */
  --ink-soft:   #33494C;   /* softened ink for secondary text on paper */
  --paper:      #F2ECDC;   /* envelope-paper background */
  --paper-dim:  #E9E0C7;   /* slightly deeper paper for panels */
  --rust:       #B23A22;   /* franking-ink red, PNG flag red */
  --rust-dark:  #8E2C18;
  --ochre:      #C0912B;   /* stamp-gold, PNG flag yellow */
  --line:       #C9BC9B;   /* hairline borders, perforation */
  --muted:      #5E6E67;
  --white:      #FFFDF7;

  --serif: "Zilla Slab", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 62ch;
  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; }

a{ color: var(--rust); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover{ color: var(--rust-dark); }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.measure{ max-width: var(--measure); }

/* focus states — always visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------
   Perforation rule — the stamp-edge divider between sections
   --------------------------------------------------------- */
.perforation{
  border: none;
  height: 0;
  margin: 0;
  border-top: 2px dashed var(--line);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover{ color: var(--ink); }

.logo .mark{
  width: 34px;
  height: 34px;
  flex: none;
}

.logo .dot{ color: var(--rust); }

.main-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a{
  color: var(--ink-soft);
  font-size: 0.97rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.main-nav a:hover{
  color: var(--ink);
  border-bottom-color: var(--rust);
}

.nav-toggle{
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 7px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before{ content:""; position:absolute; top:-6px; width:20px; height:2px; background:var(--ink); }
.nav-toggle span::after{ content:""; position:absolute; top:6px; width:20px; height:2px; background:var(--ink); }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn-primary{
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}
.btn-primary:hover{ background: var(--rust-dark); border-color: var(--rust-dark); color: var(--white); }

.btn-ink{
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover{ background: #0B1D1F; color: var(--paper); }

.btn-outline{
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--paper); }

.btn-block{ width: 100%; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero{
  padding: 72px 0 56px;
}

.hero .container{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker{
  font-family: var(--serif);
  font-style: italic;
  color: var(--rust);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero p.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-note{
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* The stamp illustration */
.stamp{
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 28px;
  transform: rotate(2deg);
}
.stamp::before{
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.stamp-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--serif);
}
.stamp-country{
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.stamp-value{
  font-size: 2.6rem;
  color: var(--rust);
  font-weight: 700;
  line-height: 1;
}
.stamp-value sup{ font-size: 1rem; top: -1.2em; }
.postmark{
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.3;
  padding: 6px;
}
.stamp-bird{
  margin: 18px 0 6px;
  color: var(--ink);
}
.stamp-caption{
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 8px;
}

/* ---------------------------------------------------------
   Ticket strip — quick facts
   --------------------------------------------------------- */
.strip{
  background: var(--ink);
  color: var(--paper);
}
.strip .container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-item{
  padding: 22px 20px;
  border-left: 1px dashed rgba(242,236,220,0.3);
  font-size: 0.95rem;
}
.strip-item:first-child{ border-left: none; }
.strip-item strong{
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */
.section{ padding: 76px 0; }
.section-head{ max-width: 58ch; margin-bottom: 44px; }
.section-head .hero-kicker{ margin-bottom: 8px; }
.section-alt{ background: var(--paper-dim); }

/* Steps (how it works) — a genuine sequence, numbered */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.step{
  padding: 28px 26px;
  border-left: 1px dashed var(--line);
}
.step:first-child{ border-left: none; }
.step-num{
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--rust);
  display: block;
  margin-bottom: 10px;
}
.step h3{ margin-bottom: 8px; }
.step p{ color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* Feature list + diagram */
.feature-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-list{ list-style: none; margin: 0; padding: 0; }
.feature-list li{
  padding: 18px 0;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}
.feature-list li:last-child{ border-bottom: 1px dashed var(--line); }
.feature-list .glyph{
  color: var(--rust);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.feature-list h3{ font-size: 1.05rem; margin-bottom: 4px; }
.feature-list p{ margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.route-diagram{
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 28px;
}
.route-diagram svg{ width: 100%; height: auto; display: block; }
.route-caption{
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* Pricing */
.pricing-wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 2px solid var(--ink);
}
.pricing-stamp{
  background: var(--ink);
  color: var(--paper);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-stamp .price{
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--ochre);
  line-height: 1;
}
.pricing-stamp .price span{ font-size: 1.1rem; color: var(--paper); }
.pricing-stamp p{ color: rgba(242,236,220,0.82); margin-top: 12px; margin-bottom: 0; font-size: 0.95rem; }

.pricing-table{ padding: 32px; }
table.rates{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
table.rates th{
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
table.rates td{
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
table.rates td:last-child, table.rates th:last-child{ text-align: right; }
.rates-note{ margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* Webmail card */
.webmail-panel{
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.webmail-panel h3{ margin-bottom: 6px; }
.webmail-panel p{ margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------
   Signup form
   --------------------------------------------------------- */
.signup-wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.signup-side h2{ margin-bottom: 14px; }
.signup-side .feature-list{ margin-top: 28px; }

.form-panel{
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 34px;
  position: relative;
}
.form-panel::before{
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}
.form-grid .full{ grid-column: 1 / -1; }

.field label{
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .req{ color: var(--rust); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea{
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--ink);
  background: var(--white);
}

.field-inline{
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 4px;
}
.field-inline label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.95rem;
}

.email-suffix{
  display: flex;
  align-items: stretch;
}
.email-suffix input{ border-radius: var(--radius) 0 0 var(--radius); }
.email-suffix span{
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--paper-dim);
  border: 1.5px solid var(--line);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.captcha-box{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.captcha-challenge{
  font-family: var(--serif);
  font-size: 1.15rem;
  background: var(--paper-dim);
  border: 1.5px dashed var(--line);
  padding: 9px 16px;
  letter-spacing: 0.04em;
}
.captcha-box input{ max-width: 140px; }

.form-msg{
  margin-top: 8px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  font-size: 0.95rem;
}
.form-msg.success{ background: #E8EEE6; border-color: #3C6B4C; color: #274A34; }
.form-msg.error{ background: #F5E4DE; border-color: var(--rust); color: var(--rust-dark); }

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-list{ border-top: 2px solid var(--ink); }
.faq-item{ border-bottom: 1px dashed var(--line); }
.faq-item summary{
  cursor: pointer;
  padding: 20px 4px;
  font-family: var(--serif);
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .plus{
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--rust);
  flex: none;
  line-height: 1;
}
.faq-item[open] summary .plus{ transform: rotate(45deg); }
.faq-item p{ padding: 0 4px 22px; color: var(--ink-soft); max-width: 68ch; }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band{
  background: var(--rust);
  color: var(--white);
}
.cta-band .container{
  padding: 52px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2{ color: var(--white); margin: 0; }
.cta-band .btn-ink{ background: var(--ink); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer{
  background: var(--ink);
  color: rgba(242,236,220,0.85);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px dashed rgba(242,236,220,0.25);
}
.footer-grid h4{
  color: var(--paper);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid li{ margin-bottom: 8px; }
.footer-grid a{ color: rgba(242,236,220,0.82); text-decoration: none; }
.footer-grid a:hover{ color: var(--paper); text-decoration: underline; }
.footer-bottom{
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(242,236,220,0.6);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .stamp{ max-width: 320px; transform: rotate(1deg); }
  .strip .container{ grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3){ border-left: none; }
  .steps{ grid-template-columns: 1fr; }
  .step{ border-left: none; border-top: 1px dashed var(--line); }
  .step:first-child{ border-top: none; }
  .feature-grid{ grid-template-columns: 1fr; gap: 32px; }
  .pricing-wrap{ grid-template-columns: 1fr; }
  .webmail-panel{ grid-template-columns: 1fr; text-align: left; }
  .signup-wrap{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px){
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 28px 20px;
    gap: 14px;
    display: none;
  }
  .main-nav.open{ display: flex; }
  .nav-toggle{ display: inline-flex; }
  .cta-band .container{ flex-direction: column; align-items: flex-start; }
}
